]> git.cworth.org Git - apitrace/commit
Start with a smaller default window size; avoid race conditions on resize.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 17 May 2011 08:43:36 +0000 (09:43 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 17 May 2011 08:43:36 +0000 (09:43 +0100)
commit53d224eb79529d0c0f45fa4f68251822c9c7bb6a
tree4400ccb058e94846f94d3b8229033a9d0a929e59
parenteb60c09bf9f9b5482defeeee1356cfbcef8c763f
Start with a smaller default window size; avoid race conditions on resize.

Because most mesa demos use a 250x250 window, and the window only grows
to accomodate the viewport (never shrinks) so we end up retracing with
a larger framebuffer.

But for this to work all the time, especially with DRI drivers which do
not hook into glViewport, it was necessary to do more event processing
to ensure that by the time the resize is done, the new window size is
visible to GL.
glws.hpp
glws_glx.cpp