mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa: add missing ASSERT_OUTSIDE_BEGIN_END() in _mesa_GetInternalformativ()
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
99629735e7
commit
6064810e53
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue