Hi,
TextureObjChunk.cpp contains the following lines:
// define GL_TEXTURE_3D, if not defined yet
#ifndef GL_VERSION_1_2
# define GL_FUNC_TEXIMAGE3D OSG_DLSYM_UNDERSCORE"glTexImage3DEXT"
# define GL_FUNC_TEXSUBIMAGE3D OSG_DLSYM_UNDERSCORE"glTexSubImage3DEXT"
#else
# define GL_FUNC_TEXIMAGE3D OSG_DLSYM_UNDERSCORE"glTexImage3D"
# define GL_FUNC_TEXSUBIMAGE3D OSG_DLSYM_UNDERSCORE"glTexSubImage3D"
#endif
#ifndef GL_VERSION_1_2
# define GL_FUNC_TEXIMAGE3D OSG_DLSYM_UNDERSCORE"glTexImage3DEXT"
# define GL_FUNC_TEXSUBIMAGE3D OSG_DLSYM_UNDERSCORE"glTexSubImage3DEXT"
#else
# define GL_FUNC_TEXIMAGE3D OSG_DLSYM_UNDERSCORE"glTexImage3D"
# define GL_FUNC_TEXSUBIMAGE3D OSG_DLSYM_UNDERSCORE"glTexSubImage3D"
#endif
The token GL_VERSION_1_2 is nowhere defined in the source tree, therefore the EXT functions are used. At the moment my test Intel HD system crashes as extension GL_EXT_texture3D is present but function glTexSubImage3DEXT returns a NULL pointer.
Is there a reason for this construct? Who was intended to define GL_VERSION_1_2? Using glTexSubImage3D everything runs fine with the Intel chip..
Michael
------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/
_______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users