Merged fixes to the osg::GLExtensions function pointer code from Stefan Huber,

and a fix to osg::State's secondary color code from Bob Kuehne.

Moved the body of the getGLExtensionFuncPtr() into the header to help out
support for Windows mapping of different OpenGL extensions function ptr per
dll.
This commit is contained in:
Robert Osfield
2002-08-20 10:14:12 +00:00
parent 93303cf1cd
commit 058ef0dc98
4 changed files with 38 additions and 34 deletions

View File

@@ -469,7 +469,7 @@ void State::setSecondaryColorPointer( GLint size, GLenum type,
GLsizei stride, const GLvoid *ptr )
{
static SecondaryColorPointerProc s_glSecondaryColorPointer =
(SecondaryColorPointerProc) osg::getGLExtensionFuncPtr("glFogCoordPointer","glFogCoordPointerEXT");
(SecondaryColorPointerProc) osg::getGLExtensionFuncPtr("glSecondaryColorPointer","glSecondaryColorPointerEXT");
if (s_glSecondaryColorPointer)
{