<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OpenGL default framebuffer dimensions not updated until glClear in Developing Games on Intel Graphics</title>
    <link>https://community.intel.com/t5/Developing-Games-on-Intel/OpenGL-default-framebuffer-dimensions-not-updated-until-glClear/m-p/1196435#M1664</link>
    <description>&lt;DIV class="lia-quilt-row lia-quilt-row-message-subject"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-subject-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV class="topic-subject-wrapper"&gt;
&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;
&lt;DIV class="MessageSubject"&gt;
&lt;DIV class="MessageSubjectIcons "&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;(previously posted to&amp;nbsp;&lt;A href="https://community.intel.com/t5/Graphics/OpenGL-default-framebuffer-dimensions-not-updated-until-glClear/m-p/1195846#M88554" target="_blank"&gt;https://community.intel.com/t5/Graphics/OpenGL-default-framebuffer-dimensions-not-updated-until-glClear/m-p/1195846#M88554&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System Setup Information:&lt;BR /&gt;-----------------------------------------&lt;/P&gt;
&lt;P&gt;System Used: ASUS Zenbook UX305CA&lt;BR /&gt;CPU SKU: Intel Core m3-6Y30&lt;BR /&gt;GPU SKU: Intel HD Graphics 515&lt;BR /&gt;Processor Line:&lt;BR /&gt;System BIOS Version: UX305CA.201&lt;BR /&gt;CMOS settings:&lt;BR /&gt;Graphics Driver Version: 26.20.100.8141, 27.20.100.8280&lt;BR /&gt;GOP/VBIOS Version:&lt;BR /&gt;Operating System: Windows 10 Home 64-bit&lt;BR /&gt;OS Version: 1903 (OS Build 18362.900)&lt;BR /&gt;API: OpenGL&lt;BR /&gt;Occurs on non-Intel GPUs?:&amp;nbsp;No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create and render to off-screen render target / framebuffer.&lt;/LI&gt;
&lt;LI&gt;Resize application window through Win32 APIs or sizeable window frame.&lt;/LI&gt;
&lt;LI&gt;Do&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;call glClear on the default framebuffer.&lt;/LI&gt;
&lt;LI&gt;Blit to default framebuffer.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;(see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://gist.github.com/Qartar/920597e672d9ab8f3c4a709d770012ee" rel="nofollow noopener noreferrer" target="_blank"&gt;https://gist.github.com/Qartar/920597e672d9ab8f3c4a709d770012ee&lt;/A&gt;&amp;nbsp;for repro source)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;glBlit[Named]Framebuffer uses the correct default framebuffer dimensions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;glBlit[Named]Framebuffer uses incorrect dimensions for the default framebuffer causing the copy operation to write to an incorrect region of the destination framebuffer. glClear(0) on the default framebuffer will update the framebuffer dimensions in the GL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Additional Information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note that the physical dimensions of the default framebuffer are updated by the operating system so this issue represents a mismatch between the GL's view of the framebuffer and the actual framebuffer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This issue reproduces on multiple machines, including a hybrid graphics Nvidia system (Alienware M15, Intel UHD Graphics 630, 26.20.100.8141). This issue does&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt;&amp;nbsp;reproduce when using Nvidia graphics. The OpenGL specification is vague on how changes to the default framebuffer by the operating system are expected to be reflected in the GL however it's unexpected that glClear is where the default framebuffer dimensions are updated on Intel graphics. It is not always desirable to clear the framebuffer each frame, e.g. if rendering is almost exclusively performed on off-screen render targets and subsequently copied to the default framebuffer or if all pixels are guaranteed to be rendered each frame.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 31 Jul 2020 18:38:17 GMT</pubDate>
    <dc:creator>Carter</dc:creator>
    <dc:date>2020-07-31T18:38:17Z</dc:date>
    <item>
      <title>OpenGL default framebuffer dimensions not updated until glClear</title>
      <link>https://community.intel.com/t5/Developing-Games-on-Intel/OpenGL-default-framebuffer-dimensions-not-updated-until-glClear/m-p/1196435#M1664</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-message-subject"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-subject-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV class="topic-subject-wrapper"&gt;
&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;
&lt;DIV class="MessageSubject"&gt;
&lt;DIV class="MessageSubjectIcons "&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;(previously posted to&amp;nbsp;&lt;A href="https://community.intel.com/t5/Graphics/OpenGL-default-framebuffer-dimensions-not-updated-until-glClear/m-p/1195846#M88554" target="_blank"&gt;https://community.intel.com/t5/Graphics/OpenGL-default-framebuffer-dimensions-not-updated-until-glClear/m-p/1195846#M88554&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;System Setup Information:&lt;BR /&gt;-----------------------------------------&lt;/P&gt;
&lt;P&gt;System Used: ASUS Zenbook UX305CA&lt;BR /&gt;CPU SKU: Intel Core m3-6Y30&lt;BR /&gt;GPU SKU: Intel HD Graphics 515&lt;BR /&gt;Processor Line:&lt;BR /&gt;System BIOS Version: UX305CA.201&lt;BR /&gt;CMOS settings:&lt;BR /&gt;Graphics Driver Version: 26.20.100.8141, 27.20.100.8280&lt;BR /&gt;GOP/VBIOS Version:&lt;BR /&gt;Operating System: Windows 10 Home 64-bit&lt;BR /&gt;OS Version: 1903 (OS Build 18362.900)&lt;BR /&gt;API: OpenGL&lt;BR /&gt;Occurs on non-Intel GPUs?:&amp;nbsp;No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create and render to off-screen render target / framebuffer.&lt;/LI&gt;
&lt;LI&gt;Resize application window through Win32 APIs or sizeable window frame.&lt;/LI&gt;
&lt;LI&gt;Do&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;call glClear on the default framebuffer.&lt;/LI&gt;
&lt;LI&gt;Blit to default framebuffer.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;(see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://gist.github.com/Qartar/920597e672d9ab8f3c4a709d770012ee" rel="nofollow noopener noreferrer" target="_blank"&gt;https://gist.github.com/Qartar/920597e672d9ab8f3c4a709d770012ee&lt;/A&gt;&amp;nbsp;for repro source)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;glBlit[Named]Framebuffer uses the correct default framebuffer dimensions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;glBlit[Named]Framebuffer uses incorrect dimensions for the default framebuffer causing the copy operation to write to an incorrect region of the destination framebuffer. glClear(0) on the default framebuffer will update the framebuffer dimensions in the GL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Additional Information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note that the physical dimensions of the default framebuffer are updated by the operating system so this issue represents a mismatch between the GL's view of the framebuffer and the actual framebuffer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This issue reproduces on multiple machines, including a hybrid graphics Nvidia system (Alienware M15, Intel UHD Graphics 630, 26.20.100.8141). This issue does&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt;&amp;nbsp;reproduce when using Nvidia graphics. The OpenGL specification is vague on how changes to the default framebuffer by the operating system are expected to be reflected in the GL however it's unexpected that glClear is where the default framebuffer dimensions are updated on Intel graphics. It is not always desirable to clear the framebuffer each frame, e.g. if rendering is almost exclusively performed on off-screen render targets and subsequently copied to the default framebuffer or if all pixels are guaranteed to be rendered each frame.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 Jul 2020 18:38:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Developing-Games-on-Intel/OpenGL-default-framebuffer-dimensions-not-updated-until-glClear/m-p/1196435#M1664</guid>
      <dc:creator>Carter</dc:creator>
      <dc:date>2020-07-31T18:38:17Z</dc:date>
    </item>
  </channel>
</rss>

