aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/wgl/stw_wgl_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/wgl/stw_wgl_context.c')
-rw-r--r--src/mesa/state_tracker/wgl/stw_wgl_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/wgl/stw_wgl_context.c b/src/mesa/state_tracker/wgl/stw_wgl_context.c
index 0c13c6b68ab..890d97fd72a 100644
--- a/src/mesa/state_tracker/wgl/stw_wgl_context.c
+++ b/src/mesa/state_tracker/wgl/stw_wgl_context.c
@@ -111,6 +111,9 @@ wglCreateContext(
FREE( ctx );
return NULL;
}
+
+ assert(!pipe->priv);
+ pipe->priv = hdc;
ctx->st = st_create_context( pipe, visual, NULL );
if (ctx->st == NULL) {
@@ -265,6 +268,8 @@ wglMakeCurrent(
if (ctx && fb) {
st_make_current( ctx->st, fb->stfb, fb->stfb );
framebuffer_resize( fb, width, height );
+ ctx->hdc = hdc;
+ ctx->st->pipe->priv = hdc;
}
else {
/* Detach */