mesa: enable GL_ARB_texture_float if TEXTURE_FLOAT_ENABLED is defined
authorBrian Paul <brianp@vmware.com>
Thu, 18 Apr 2013 14:20:56 +0000 (08:20 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 18 Apr 2013 16:41:08 +0000 (10:41 -0600)
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>
src/mesa/main/extensions.c

index 9c2fcab7f9bb69239f42a85aa7918c08115ad1b8..64473b9b67b9995ffc127ed0407e6038540ff53b 100644 (file)
@@ -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;