diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-01-14 12:56:12 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-01-16 15:16:55 +0000 |
commit | eac69bf99e9917492c646854128c117d064e9901 (patch) | |
tree | 08f6ee1d54ec4fba5a3fe2ac3fbaca72835d971e /src/mesa/state_tracker/wgl/stw_wgl_context.c | |
parent | abd280ab0b72979bf709b2d029e11c8f4bc4d5f8 (diff) |
stw: Dispatch to our stw_winsys::flush_front_buffer
pipe_winsys::flush_front_buffer should die someday, but this is good enough
for now.
Diffstat (limited to 'src/mesa/state_tracker/wgl/stw_wgl_context.c')
-rw-r--r-- | src/mesa/state_tracker/wgl/stw_wgl_context.c | 5 |
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 0c13c6b68a..890d97fd72 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 */ |