<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Using old viewport value after a window resize (content is clipped)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=68296">68296</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Using old viewport value after a window resize (content is clipped)
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>antognolli@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=84295" name="attach_84295" title="Sample code that reproduces the problem.">attachment 84295</a> <a href="attachment.cgi?id=84295&action=edit" title="Sample code that reproduces the problem.">[details]</a></span>
Sample code that reproduces the problem.

In the attached sample code, a window is created with 100x100. However, after
resizing it with "i" keyboard input to 200x200, changing the viewport (with
glViewport), and drawing its content again, the content is clipped with the old
100x100 size.

Uncommenting line 48 will remove the bug, as if it was causing mesa to "flush"
the viewport size.

I noticed this on EFL (Enlightenment Foundation Libraries), both on GL X11 and
Wayland EGL backends.

This bug only happens on mesa from git, it seems that there's no bug on 9.1.6.

I checked <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - viewport for first frame after win creation is wrong if win resized before drawing"
   href="show_bug.cgi?id=29984">bug #29984</a>, it's similar, but I still have the problem.

Running on Fedora 19.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>