Mesa (8.0): mesa: add missing GL_UNSIGNED_INT_10F_11F_11F_REV case

Chad Versace chadversary at kemper.freedesktop.org
Wed Jun 20 19:52:51 UTC 2012


Module: Mesa
Branch: 8.0
Commit: d715d3f4a82463a00a64d534747d80792508b97f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d715d3f4a82463a00a64d534747d80792508b97f

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Feb 13 07:20:27 2012 -0700

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
(cherry picked from commit df1cd55ebf362948788c04d2fa7da55c80991605)

---

 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 750db94..b6c2645 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 */
    }




More information about the mesa-commit mailing list