diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-19 08:50:35 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-19 13:16:36 -0700 |
commit | dbf6eced87c16eae0834d38d86a60b4f643ee3b7 (patch) | |
tree | 26e0815902db0eb0bd9cf6cf20251a1c25cd3083 /src/mesa/pipe/xlib | |
parent | c61b32777b5b3b138c8bf5fac7e7e70ec084c8c1 (diff) |
move st_make_current() before buffer size check so renderbuffer alloc storage works
Diffstat (limited to 'src/mesa/pipe/xlib')
-rw-r--r-- | src/mesa/pipe/xlib/xm_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/xlib/xm_api.c b/src/mesa/pipe/xlib/xm_api.c index 142074bc65..186a712b52 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; } |