opengl: Use get_glxdrawable to grab the drawable.
This commit is contained in:
parent
1cf9436efe
commit
191a29c1e7
|
@ -1505,7 +1505,7 @@ BOOL X11DRV_wglMakeCurrent(X11DRV_PDEVICE *physDev, HGLRC hglrc) {
|
||||||
NtCurrentTeb()->glContext = NULL;
|
NtCurrentTeb()->glContext = NULL;
|
||||||
} else {
|
} else {
|
||||||
Wine_GLContext *ctx = (Wine_GLContext *) hglrc;
|
Wine_GLContext *ctx = (Wine_GLContext *) hglrc;
|
||||||
Drawable drawable = physDev->drawable;
|
Drawable drawable = get_glxdrawable(physDev);
|
||||||
if (ctx->ctx == NULL) {
|
if (ctx->ctx == NULL) {
|
||||||
/* The describe lines below are for debugging purposes only */
|
/* The describe lines below are for debugging purposes only */
|
||||||
if (TRACE_ON(wgl)) {
|
if (TRACE_ON(wgl)) {
|
||||||
|
|
Loading…
Reference in New Issue