opengl: Use get_glxdrawable to grab the drawable.

This commit is contained in:
Ulrich Czekalla 2007-06-14 11:02:50 -04:00 committed by Alexandre Julliard
parent 1cf9436efe
commit 191a29c1e7

View file

@ -1505,7 +1505,7 @@ BOOL X11DRV_wglMakeCurrent(X11DRV_PDEVICE *physDev, HGLRC hglrc) {
NtCurrentTeb()->glContext = NULL;
} else {
Wine_GLContext *ctx = (Wine_GLContext *) hglrc;
Drawable drawable = physDev->drawable;
Drawable drawable = get_glxdrawable(physDev);
if (ctx->ctx == NULL) {
/* The describe lines below are for debugging purposes only */
if (TRACE_ON(wgl)) {