summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-10-08 14:41:17 +0000
committerBrian Paul <[email protected]>2005-10-08 14:41:17 +0000
commit474f28e57ca750ca39d7f684904a3c0e69a03f62 (patch)
treeaa9d5d1c9c37bf9a457ed0e77f89eabda631efda /src/mesa/main/get.c
parent81a22ef53953d950052c7bd5a282e96107a25f24 (diff)
Fix some issues with state updates and renderbuffers. Querying GL_RED_BITS,
etc. after calling glRenderBufferStorageEXT gave undefined results.
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 96ee29f6f5a..633d8e8617d 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -11,6 +11,7 @@
#include "get.h"
#include "macros.h"
#include "mtypes.h"
+#include "state.h"
#include "texcompress.h"
@@ -85,6 +86,9 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
if (!params)
return;
+ if (ctx->NewState)
+ _mesa_update_state(ctx);
+
if (ctx->Driver.GetBooleanv &&
ctx->Driver.GetBooleanv(ctx, pname, params))
return;
@@ -1912,6 +1916,9 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
if (!params)
return;
+ if (ctx->NewState)
+ _mesa_update_state(ctx);
+
if (ctx->Driver.GetFloatv &&
ctx->Driver.GetFloatv(ctx, pname, params))
return;
@@ -3739,6 +3746,9 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
if (!params)
return;
+ if (ctx->NewState)
+ _mesa_update_state(ctx);
+
if (ctx->Driver.GetIntegerv &&
ctx->Driver.GetIntegerv(ctx, pname, params))
return;