diff options
author | Brian Paul <[email protected]> | 2012-02-13 07:20:27 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-13 08:47:59 -0700 |
commit | df1cd55ebf362948788c04d2fa7da55c80991605 (patch) | |
tree | b03779684e94b469f52fc5d33994b4ebb9cf19ee /src/mesa/main/image.c | |
parent | d2c54fb5223efee699862bef56177027edc140bc (diff) |
mesa: add missing GL_UNSIGNED_INT_10F_11F_11F_REV case
in _mesa_error_check_format_and_type().
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=45967
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 750db94449b..b6c2645e9b0 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -428,6 +428,15 @@ _mesa_error_check_format_and_type(const struct gl_context *ctx, } return GL_NO_ERROR; + case GL_UNSIGNED_INT_10F_11F_11F_REV: + if (!ctx->Extensions.EXT_packed_float) { + return GL_INVALID_ENUM; + } + if (format != GL_RGB) { + return GL_INVALID_OPERATION; + } + return GL_NO_ERROR; + default: ; /* fall-through */ } |