[Mesa-dev] [Bug 68296] Using old viewport value after a window resize (content is clipped)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 18 07:25:12 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=68296

--- Comment #12 from U. Artie Eoff <ullysses.a.eoff at intel.com> ---
Created attachment 103044
  --> https://bugs.freedesktop.org/attachment.cgi?id=103044&action=edit
clear color does not fill new viewport size

The problem is that the GL color buffer does not fill the GL viewport after
it's been resized.  That is, after calling glViewport(...) the background color
goes black, and in the more extreme case the original clear color remains in
the portion of the previous viewport size giving the illusion of being clipped
(as seen in my attached image).

If you modify the glClearColor(...) in the sample test code to be something
other than black, then the problem becomes obvious.  If then you add a
glClear(GL_COLOR_BUFFER_BIT) after the call to glViewport(...), then the
problem goes away.

The question is, is it the responsibility of the GL client program to make a
call to glClear after executing glViewport, or is Mesa supposed to handle this
for you?

The EFL developers indicate that this is only a problem on Intel platforms.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140718/304a6ed4/attachment.html>


More information about the mesa-dev mailing list