Re: no GL_ARB_texture_float

Brian Paul <[email protected]>
Newsgroups gmane.comp.video.mesa3d.user
Organization VMware, Inc.
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.