summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/windows
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2002-07-29 00:01:00 +0000
committerKarl Schultz <kschultz@freedesktop.org>2002-07-29 00:01:00 +0000
commitf1dee4fe8f2dd4049bd768ab09706f6d78cc915f (patch)
treea84e04753b0ea5c3d388034f91bb0380281257a7 /src/mesa/drivers/windows
parent54572c1b93559caab2c53fe08a2f56dc8cfb1b33 (diff)
Catch up windows driver with recent context mods
Diffstat (limited to 'src/mesa/drivers/windows')
-rw-r--r--src/mesa/drivers/windows/wmesa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/windows/wmesa.c b/src/mesa/drivers/windows/wmesa.c
index 35a670096a..134f685369 100644
--- a/src/mesa/drivers/windows/wmesa.c
+++ b/src/mesa/drivers/windows/wmesa.c
@@ -1,4 +1,4 @@
-/* $Id: wmesa.c,v 1.32 2002/07/09 01:22:51 brianp Exp $ */
+/* $Id: wmesa.c,v 1.33 2002/07/29 00:01:00 kschultz Exp $ */
/*
* Windows (Win32) device driver for Mesa 3.4
@@ -1343,7 +1343,7 @@ WMesaContext WMesaCreateContext( HWND hWnd, HPALETTE* Pal,
if (!_mesa_initialize_context(c->gl_ctx,
c->gl_visual,
(GLcontext *) NULL,
- (void *) c, GL_TRUE )) {
+ &imports)) {
_mesa_destroy_visual( c->gl_visual );
free(c);
return NULL;
@@ -1426,9 +1426,9 @@ void WMesaMakeCurrent( WMesaContext c )
if(Current == c)
return;
+ Current = c;
wmesa_update_state(c->gl_ctx, 0);
_mesa_make_current(c->gl_ctx, c->gl_buffer);
- Current = c;
if (Current->gl_ctx->Viewport.Width==0) {
/* initialize viewport to window size */
_mesa_Viewport( 0, 0, Current->width, Current->height );