[Mesa-users] no GL_ARB_texture_float

Brian Paul brianp at vmware.com
Wed Apr 17 10:23:37 PDT 2013


On 04/17/2013 11:09 AM, burlen wrote:
> Hi,
>
> I've built mesa 9.1.1 with --enable-texture-float, and see all of the
> related warnings about consulting my lawyer during the configure,
> however the extensions string does not list the extension
> GL_ARB_texture_float. I'm using OS Mesa, should this work?

Can you try this patch?


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;


-Brian


More information about the mesa-users mailing list