diff options
author | Brian Paul <[email protected]> | 2002-03-29 17:20:48 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-03-29 17:20:48 +0000 |
commit | 23d319fc7dda3ae3639c05cd2c7a8bcdac9eac36 (patch) | |
tree | 9fc0b69a21e879786da6d0789ee578ea45ce16d8 /src/mesa | |
parent | a68b8dfd76fa25b8e4ecaf1c6961a958e0fdfd3b (diff) |
use _glapi_get_context() instead of GET_CURRENT_CONTEXT(ctx); in buffer_size()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 1cc7439afd1..258f367a7f7 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.75 2002/03/16 00:53:15 brianp Exp $ */ +/* $Id: osmesa.c,v 1.76 2002/03/29 17:20:48 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -877,7 +877,8 @@ static void clear( GLcontext *ctx, GLbitfield mask, GLboolean all, static void buffer_size( GLframebuffer *buffer, GLuint *width, GLuint *height ) { - GET_CURRENT_CONTEXT(ctx); + /* don't use GET_CURRENT_CONTEXT(ctx) here - it's a problem on Windows */ + GLcontext *ctx = (GLcontext *) _glapi_get_context(); (void) buffer; if (ctx) { OSMesaContext osmesa = OSMESA_CONTEXT(ctx); |