OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c61b327
)
move st_make_current() before buffer size check so renderbuffer alloc storage works
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 15:50:35 +0000
(08:50 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 19 Dec 2007 20:16:36 +0000
(13:16 -0700)
src/mesa/pipe/xlib/xm_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/xlib/xm_api.c
b/src/mesa/pipe/xlib/xm_api.c
index
142074b
..
186a712
100644
(file)
--- 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;
}