From: Brian Date: Wed, 19 Dec 2007 15:50:35 +0000 (-0700) Subject: move st_make_current() before buffer size check so renderbuffer alloc storage works X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbf6eced87c16eae0834d38d86a60b4f643ee3b7;p=mesa.git move st_make_current() before buffer size check so renderbuffer alloc storage works --- diff --git a/src/mesa/pipe/xlib/xm_api.c b/src/mesa/pipe/xlib/xm_api.c index 142074bc650..186a712b52c 100644 --- a/src/mesa/pipe/xlib/xm_api.c +++ b/src/mesa/pipe/xlib/xm_api.c @@ -1067,12 +1067,12 @@ GLboolean XMesaMakeCurrent2( XMesaContext c, XMesaBuffer drawBuffer, */ _glapi_check_multithread(); + st_make_current(c->st, drawBuffer->stfb, readBuffer->stfb); + xmesa_check_and_update_buffer_size(c, drawBuffer); if (readBuffer != drawBuffer) xmesa_check_and_update_buffer_size(c, readBuffer); - st_make_current(c->st, drawBuffer->stfb, readBuffer->stfb); - /* Solution to Stephane Rehel's problem with glXReleaseBuffersMESA(): */ drawBuffer->wasCurrent = GL_TRUE; }