mesa: add missing GL_UNSIGNED_INT_10F_11F_11F_REV case
authorBrian Paul <brianp@vmware.com>
Mon, 13 Feb 2012 14:20:27 +0000 (07:20 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 13 Feb 2012 15:47:59 +0000 (08:47 -0700)
in _mesa_error_check_format_and_type().

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=45967

src/mesa/main/image.c

index 750db94449b346208c6cf368d284746b05605880..b6c2645e9b0f9f38607b84e7980fb571316ae298 100644 (file)
@@ -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 */
    }