diff options
author | Alan Hourihane <[email protected]> | 2009-01-14 11:34:29 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2009-01-14 11:58:06 +0000 |
commit | 3ef419f4a5d0c5bb6720196ae6cfe3002d4aabc8 (patch) | |
tree | efb914baed7768e78433cf0bf0b8ccea0c9d9e99 /src/egl/drivers/glx | |
parent | d96c89e57916ffcc72742107caaa3a90f2b78a80 (diff) |
egl: fix makecurrent with null drawable/context
Diffstat (limited to 'src/egl/drivers/glx')
-rw-r--r-- | src/egl/drivers/glx/egl_glx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/glx/egl_glx.c b/src/egl/drivers/glx/egl_glx.c index c93e568cffd..8ba70ba7a60 100644 --- 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; |