From be9003d90c2efb9b45e6d882fe5bbe3e01cc16b6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 11 Nov 2010 10:53:23 +0000 Subject: [PATCH] From Wang Rui, "The latest modification of osg/State uses the GLuint64EXT type, which belongs to GL_EXT_timer_query and should be decalared to avoid compiling errors if the extension is not supported. I've attached this small fix." --- include/osg/State | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/osg/State b/include/osg/State index f28f5715a..18d6c0650 100644 --- a/include/osg/State +++ b/include/osg/State @@ -51,6 +51,16 @@ #endif #endif +#if !defined(GL_EXT_timer_query) && !defined(OSG_GL3_AVAILABLE) + #ifdef _WIN32 + typedef __int64 GLint64EXT; + typedef unsigned __int64 GLuint64EXT; + #else + typedef long long int GLint64EXT; + typedef unsigned long long int GLuint64EXT; + #endif +#endif + namespace osg { /** macro for use with osg::StateAttribute::apply methods for detecting and