projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d96c89e
)
egl: fix makecurrent with null drawable/context
author
Alan Hourihane
<alanh@vmware.com>
Wed, 14 Jan 2009 11:34:29 +0000
(11:34 +0000)
committer
Alan Hourihane
<alanh@vmware.com>
Wed, 14 Jan 2009 11:58:06 +0000
(11:58 +0000)
src/egl/drivers/glx/egl_glx.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/glx/egl_glx.c
b/src/egl/drivers/glx/egl_glx.c
index c93e568cffd5450d4e1077291b21a09499b1f371..8ba70ba7a60a8d40f39c1641cf3bfce9b49184bc 100644
(file)
--- a/
src/egl/drivers/glx/egl_glx.c
+++ b/
src/egl/drivers/glx/egl_glx.c
@@
-578,7
+578,7
@@
GLX_eglMakeCurrent(_EGLDriver *drv, EGLDisplay dpy, EGLSurface d,
return EGL_FALSE;
#ifdef GLX_VERSION_1_3
- if (!glXMakeContextCurrent(disp->Xdpy, GLX_dsurf
->drawable, GLX_rsurf->drawable, GLX_ctx->context
))
+ if (!glXMakeContextCurrent(disp->Xdpy, GLX_dsurf
? GLX_dsurf->drawable : 0, GLX_rsurf ? GLX_rsurf->drawable : 0, GLX_ctx ? GLX_ctx->context : NULL
))
#endif
if (!glXMakeCurrent(disp->Xdpy, GLX_dsurf ? GLX_dsurf->drawable : 0, GLX_ctx ? GLX_ctx->context : NULL))
return EGL_FALSE;