diff options
author | Brian Paul <[email protected]> | 2002-04-04 17:12:47 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-04-04 17:12:47 +0000 |
commit | e2130abf8fe89c7973a65456e1ec12727d4addbc (patch) | |
tree | 3c15b7de7d81b3ca57e4d9004323d5decdb54418 /src/mesa/drivers/osmesa | |
parent | bf6a6f1d592afc33213188d5243168380b7b4bc7 (diff) |
call _mesa_ResizeBuffersMESA() in OSMesaMakeCurrent() to reconcile buffer size changes
Diffstat (limited to 'src/mesa/drivers/osmesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index b38267d1fda..358fb9711f0 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,8 +1,8 @@ -/* $Id: osmesa.c,v 1.71.2.4 2002/03/25 23:52:34 kschultz Exp $ */ +/* $Id: osmesa.c,v 1.71.2.5 2002/04/04 17:12:47 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 4.0.2 + * Version: 4.0.3 * * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. * @@ -37,6 +37,7 @@ #include "glheader.h" #include "GL/osmesa.h" +#include "buffers.h" #include "context.h" #include "colormac.h" #include "depth.h" @@ -480,6 +481,10 @@ OSMesaMakeCurrent( OSMesaContext ctx, void *buffer, GLenum type, ctx->gl_ctx.Scissor.Width = width; ctx->gl_ctx.Scissor.Height = height; } + else { + /* this will make ensure we recognize the new buffer size */ + _mesa_ResizeBuffersMESA(); + } return GL_TRUE; } |