From: Dave Airlie <airl...@redhat.com>

EXT_texture_integer isn't strictly equivalent to GL3, the L/I/A integer
formats are not required in GL3, and some drivers may not require them.

I've no idea if we have any hw that requires it, just sending the patch along
after discussion on irc.

Signed-off-by: Dave Airlie <airl...@redhat.com>
---
 src/mesa/main/mtypes.h  |    2 ++
 src/mesa/main/version.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 107371e..6191026 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2832,6 +2832,8 @@ struct gl_constants
     */
    GLboolean GLSLSkipStrictMaxVaryingLimitCheck;
    GLboolean GLSLSkipStrictMaxUniformLimitCheck;
+
+   GLboolean GL3TextureInteger; /* does the driver support GL3 TextureInteger 
support as opposed to the full EXT_texture_integer */
 };
 
 
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 49cdc30..3b548e5 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -142,7 +142,7 @@ compute_version(struct gl_context *ctx)
                               ctx->Extensions.EXT_packed_depth_stencil &&
                               ctx->Extensions.EXT_packed_float &&
                               ctx->Extensions.EXT_texture_array &&
-                              ctx->Extensions.EXT_texture_integer &&
+                              (ctx->Const.GL3TextureInteger || 
ctx->Extensions.EXT_texture_integer) &&
                               ctx->Extensions.EXT_texture_shared_exponent &&
                               ctx->Extensions.EXT_transform_feedback &&
                               ctx->Extensions.NV_conditional_render);
-- 
1.7.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to