Hi Christian,
I have had a look through the OSG code base and there is mix of
GL_HALF_FLOAT, GL_HALF_FLOAT_NV and GL_HALF_FLOAT_ARB thanks to
various submissions at different times. This obviously isn't ideal so
I've replaced all the L_HALF_FLOAT_NV and GL_HALF_FLOAT_ARB usage with
GL_HALF_FLOAT and changed the #define in include/osg/Texture to
simply:
#ifndef GL_HALF_FLOAT
#define GL_HALF_FLOAT 0x140B
#endif
Could you do an svn update and let me know how you get on.
Thanks,
Robert.
On 31 January 2013 16:10, Christian Schulte <[email protected]> wrote:
> Hi,
>
> I just tried to recompile on a RedHat Enterprise 5.3 with gcc 4.7.2 the OSG
> trunk. The compilation fails on ReaderWriterDDS.cpp on a "error :
> 'GL_HALF_FLOAT' not declared in this scope". I use Mesa 6.5.1, it's the last
> release recognized by yum on RedHat (I know it's quite old... :-( ). In
> include/osg/Texture, GL_HALF_FLOAT is defined only if
> GL_ARB_half_float_pixel is not defined. The problem is that glext.h does
> define GL_ARB_half_float_pixel, GL_HALF_FLOAT_ARB and GL_HALF_FLOAT_NV but
> not the GL_HALF_FLOAT.
>
> Adding to include/osg/Texture at line 400 :
>
> #ifndef GL_ARB_half_float_vertex
> #define GL_HALF_FLOAT 0x140B
> #endif
>
> corrects the problem on this type of configuration.
>
> Does this mod induce any problems on other platforms ? What's your opinion ?
>
> Cheers,
>
> Christian
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org