Fix some issues with state updates and renderbuffers. Querying GL_RED_BITS,

etc. after calling glRenderBufferStorageEXT gave undefined results.
This commit is contained in:
Brian Paul
2005-10-08 14:41:17 +00:00
parent 81a22ef539
commit 474f28e57c
4 changed files with 63 additions and 27 deletions

View File

@@ -1025,6 +1025,9 @@ def EmitGetFunction(stateVars, returnType):
print " if (!params)"
print " return;"
print ""
print " if (ctx->NewState)"
print " _mesa_update_state(ctx);"
print ""
print " if (ctx->Driver.%s &&" % function
print " ctx->Driver.%s(ctx, pname, params))" % function
print " return;"
@@ -1075,6 +1078,7 @@ def EmitHeader():
#include "get.h"
#include "macros.h"
#include "mtypes.h"
#include "state.h"
#include "texcompress.h"