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 12:35 PM, burlen wrote: > Thannks! That solved it, at least partially. now texture float is > available. OK, I've posted the patch for review. > I'm having some follow up issues. > > I'm render to the texture with a vertex and fragment shader. however > textures are clear, nothing got stored in them. Unfortunately the > extensions loaded and no errors are reported. The code's been > validated on all manner of hardware and platforms, so perhaps there's > more to it? perhaps it's an unrelated issue with GLSL? > > Are there any known issues with GLSL and OS Mesa that would explain? Sounds like you should file a bug for this. Please provide a test program if possible. -Brian > > On 04/17/2013 10:23 AM, Brian Paul wrote: >> 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 >