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

Reply via email to