diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texgetimage.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index d5cb1636605..b0ced1eac0f 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -1465,6 +1465,12 @@ _mesa_GetTextureSubImage(GLuint texture, GLint level, return; } + if (!legal_getteximage_target(ctx, texObj->Target, true)) { + _mesa_error(ctx, GL_INVALID_OPERATION, + "%s(buffer/multisample texture)", caller); + return; + } + if (getteximage_error_check(ctx, texObj, texObj->Target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels, caller)) { |