Hi Stephan,

I haven't merged your change as is, but have merged and checked in the
more succinct implementation:

    _isTexture3DSupported = OSG_GL3_FEATURES ||

isGLExtensionSupported(contextID,"GL_EXT_texture3D") ||
                            strncmp((const
char*)glGetString(GL_VERSION),"1.2",3)>=0;

Let me know if this works fine, thanks,
Robert.



On Mon, Mar 14, 2011 at 2:38 PM, Stephan Maximilian Huber
<[email protected]> wrote:
> Hi Robert,
>
> attached you'll find a fix for a bug in Texture2DArray.cpp: the
> extensions-code checks only for the 3d-texture-extension, not for the
> OpenGL-version for 3D-Texture-support, as Texture3D.cpp does.
>
> I changed the code, so it checks the OpenGL-version similar to the
> implementation found in Texture3D.cpp.
>
> As OSX does not expose GL_EXT_texture3D, Texture2DArray did not work
> correctly, with my fix Texture2DArrays do work now.
>
>
> cheers,
> Stephan
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to