diff options
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 93dd927bb01..8c3958b0965 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -2033,6 +2033,11 @@ _mesa_GetUnsignedBytevEXT(GLenum pname, GLubyte *data) GET_CURRENT_CONTEXT(ctx); + if (!ctx->Extensions.EXT_memory_object) { + _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); + return; + } + d = find_value(func, pname, &p, &v); size = get_value_size(d->type, &v); if (size >= 0) { @@ -2812,6 +2817,11 @@ _mesa_GetUnsignedBytei_vEXT(GLenum target, GLuint index, GLubyte *data) GET_CURRENT_CONTEXT(ctx); + if (!ctx->Extensions.EXT_memory_object) { + _mesa_error(ctx, GL_INVALID_OPERATION, "%s(unsupported)", func); + return; + } + type = find_value_indexed(func, target, index, &v); size = get_value_size(type, &v); if (size <= 0) { |