]> git.cworth.org Git - apitrace/blobdiff - retrace/glretrace_ws.cpp
attrib_list support for glXChooseVisual, the last GLX function.
[apitrace] / retrace / glretrace_ws.cpp
index 94a0d931ad008ad886ee08d55c4285f1b6312841..ab3c41af388009583be26f5190abf0a7f44d8ec1 100644 (file)
@@ -214,6 +214,9 @@ updateDrawable(int width, int height) {
         return;
     }
 
+    width  = std::max(width,  currentDrawable->width);
+    height = std::max(height, currentDrawable->height);
+
     // Check for bound framebuffer last, as this may have a performance impact.
     GLint draw_framebuffer = 0;
     glGetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &draw_framebuffer);