From: Brian Paul Date: Wed, 16 Jan 2013 15:19:13 +0000 (-0700) Subject: mesa: add missing ASSERT_OUTSIDE_BEGIN_END() in _mesa_GetInternalformativ() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6064810e53aef4c13c943b6dbdd6a647219458e9;p=mesa.git mesa: add missing ASSERT_OUTSIDE_BEGIN_END() in _mesa_GetInternalformativ() Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c index f08ab66f040..bd895e87481 100644 --- 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;