summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-04-18 08:20:56 -0600
committerBrian Paul <brianp@vmware.com>2013-04-18 10:41:08 -0600
commit877e3c1d42bdf475fb97d575ccc195c627ca3481 (patch)
treefd209ac770b19cbecb7ada5d168c531c963f01f1 /src/mesa/main
parent50cbcf0c4680bc13e63fe339ef79ed68b2f33c70 (diff)
downloadexternal_mesa3d-877e3c1d42bdf475fb97d575ccc195c627ca3481.zip
external_mesa3d-877e3c1d42bdf475fb97d575ccc195c627ca3481.tar.gz
external_mesa3d-877e3c1d42bdf475fb97d575ccc195c627ca3481.tar.bz2
mesa: enable GL_ARB_texture_float if TEXTURE_FLOAT_ENABLED is defined
Per message on mesa-users list, this wasn't working before. Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/extensions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 9c2fcab..64473b9 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -397,7 +397,9 @@ _mesa_enable_sw_extensions(struct gl_context *ctx)
ctx->Extensions.ARB_texture_env_combine = GL_TRUE;
ctx->Extensions.ARB_texture_env_crossbar = GL_TRUE;
ctx->Extensions.ARB_texture_env_dot3 = GL_TRUE;
- /*ctx->Extensions.ARB_texture_float = GL_TRUE;*/
+#ifdef TEXTURE_FLOAT_ENABLED
+ ctx->Extensions.ARB_texture_float = GL_TRUE;
+#endif
ctx->Extensions.ARB_texture_non_power_of_two = GL_TRUE;
ctx->Extensions.ARB_texture_rg = GL_TRUE;
ctx->Extensions.ARB_texture_compression_rgtc = GL_TRUE;