]> git.cworth.org Git - apitrace/blobdiff - retrace/glretrace_ws.cpp
GLX: More consistent naming of an AttribArray.
[apitrace] / retrace / glretrace_ws.cpp
index ac03fcc97de6d56390f807a3b1661e6571d489c1..ab3c41af388009583be26f5190abf0a7f44d8ec1 100644 (file)
@@ -131,7 +131,7 @@ Context::~Context()
 }
 
 
-static thread_specific Context *
+static OS_THREAD_SPECIFIC_PTR(Context)
 currentContextPtr;
 
 
@@ -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);