projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9962973
)
mesa: add missing ASSERT_OUTSIDE_BEGIN_END() in _mesa_GetInternalformativ()
author
Brian Paul
<brianp@vmware.com>
Wed, 16 Jan 2013 15:19:13 +0000
(08:19 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 17 Jan 2013 00:06:17 +0000
(17:06 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/formatquery.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formatquery.c
b/src/mesa/main/formatquery.c
index f08ab66f040572f2601523288700503dad813c2f..bd895e874811e0051b71bfa852dee47bd606b084 100644
(file)
--- a/
src/mesa/main/formatquery.c
+++ b/
src/mesa/main/formatquery.c
@@
-22,6
+22,7
@@
*/
#include "mtypes.h"
+#include "context.h"
#include "glformats.h"
#include "macros.h"
#include "mfeatures.h"
@@
-37,6
+38,8
@@
_mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname,
GLsizei count = 0;
GET_CURRENT_CONTEXT(ctx);
+ ASSERT_OUTSIDE_BEGIN_END(ctx);
+
if (!ctx->Extensions.ARB_internalformat_query) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glGetInternalformativ");
return;