From eac69bf99e9917492c646854128c117d064e9901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 14 Jan 2009 12:56:12 +0000 Subject: stw: Dispatch to our stw_winsys::flush_front_buffer pipe_winsys::flush_front_buffer should die someday, but this is good enough for now. --- src/mesa/state_tracker/wgl/stw_wgl_context.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/state_tracker/wgl/stw_wgl_context.c') 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 */ -- cgit v1.2.3