X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglretrace_ws.cpp;h=ab3c41af388009583be26f5190abf0a7f44d8ec1;hb=25e08d072ae40fffa99b72dab0429c6ed25b19ce;hp=ac03fcc97de6d56390f807a3b1661e6571d489c1;hpb=1f94577d8c4b1c1a2a1a8f3dceb0daac02dd72b7;p=apitrace diff --git a/retrace/glretrace_ws.cpp b/retrace/glretrace_ws.cpp index ac03fcc..ab3c41a 100644 --- a/retrace/glretrace_ws.cpp +++ b/retrace/glretrace_ws.cpp @@ -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);