Lines 129-139
Link Here
|
129 |
} |
124 |
} |
130 |
|
125 |
|
131 |
|
126 |
|
132 |
/* retrieve the GLX drawable to use on a given DC */ |
127 |
/* retrieve the X drawable to use on a given DC */ |
133 |
inline static Drawable get_drawable( HDC hdc ) |
128 |
inline static Drawable get_drawable( HDC hdc ) |
134 |
{ |
129 |
{ |
135 |
GLXDrawable drawable; |
130 |
Drawable drawable; |
136 |
enum x11drv_escape_codes escape = X11DRV_GET_GLX_DRAWABLE; |
131 |
enum x11drv_escape_codes escape = X11DRV_GET_DRAWABLE; |
137 |
|
132 |
|
138 |
if (!ExtEscape( hdc, X11DRV_ESCAPE, sizeof(escape), (LPCSTR)&escape, |
133 |
if (!ExtEscape( hdc, X11DRV_ESCAPE, sizeof(escape), (LPCSTR)&escape, |
139 |
sizeof(drawable), (LPSTR)&drawable )) drawable = 0; |
134 |
sizeof(drawable), (LPSTR)&drawable )) drawable = 0; |
Lines 546-553
Link Here
|
546 |
} |
540 |
} |
547 |
TRACE(" make current for dis %p, drawable %p, ctx %p\n", ctx->display, (void*) drawable, ctx->ctx); |
541 |
TRACE(" make current for dis %p, drawable %p, ctx %p\n", ctx->display, (void*) drawable, ctx->ctx); |
548 |
ret = glXMakeCurrent(ctx->display, drawable, ctx->ctx); |
542 |
ret = glXMakeCurrent(ctx->display, drawable, ctx->ctx); |
549 |
if(ret && type == OBJ_MEMDC) |
|
|
550 |
glDrawBuffer(GL_FRONT_LEFT); |
551 |
} |
543 |
} |
552 |
LEAVE_GL(); |
544 |
LEAVE_GL(); |
553 |
TRACE(" returning %s\n", (ret ? "True" : "False")); |
545 |
TRACE(" returning %s\n", (ret ? "True" : "False")); |