]> git.mxchange.org Git - simgear.git/commitdiff
Off-by-one error in the OSG_VERSION_LESS_THAN macro
authorTim Moore <timoore33@gmail.com>
Mon, 20 Apr 2015 22:06:22 +0000 (00:06 +0200)
committerTim Moore <timoore33@gmail.com>
Mon, 20 Apr 2015 22:06:22 +0000 (00:06 +0200)
I was confused about when the version number gets bumped in OSG sources...

simgear/canvas/elements/CanvasText.cxx
simgear/scene/material/Technique.cxx
simgear/scene/sky/CloudShaderGeometry.cxx
simgear/scene/tgdb/ShaderGeometry.cxx
simgear/scene/util/SGSceneFeatures.cxx

index ead600bd854b1a70457898864d8b29003d252420..0d108b1b59f84e6fa4cf6f565eac62f8a5ef4d07 100644 (file)
@@ -159,7 +159,7 @@ namespace canvas
 
     if( empty() )
       return pos;
-#if OSG_VERSION_LESS_THAN(3,3,4)
+#if OSG_VERSION_LESS_THAN(3,3,5)
     GlyphQuads::Coords2 const& coords = _quads->_coords;
 #else
     GlyphQuads::Coords2 refCoords = _quads->_coords;
@@ -198,7 +198,7 @@ namespace canvas
       return cursorPos(0);
 
     GlyphQuads::Glyphs const& glyphs = _quads->_glyphs;
-    #if OSG_VERSION_LESS_THAN(3,3,4)
+    #if OSG_VERSION_LESS_THAN(3,3,5)
     GlyphQuads::Coords2 const& coords = _quads->_coords;
 #else
     GlyphQuads::Coords2 refCoords = _quads->_coords;
@@ -636,7 +636,7 @@ namespace canvas
 
     const GlyphQuads& quads = _textureGlyphQuadMap.begin()->second;
     const GlyphQuads::Glyphs& glyphs = quads._glyphs;
-#if OSG_VERSION_LESS_THAN(3,3,4)
+#if OSG_VERSION_LESS_THAN(3,3,5)
     GlyphQuads::Coords2 const& coords = quads._coords;
 #else
     GlyphQuads::Coords2 refCoords = quads._coords;
index 96856cd13d58e0642ca79ab44558c3b3a51c7307..c240391a7f1da25663f3d3996240951c71f597cf 100644 (file)
@@ -326,7 +326,7 @@ public:
             = GL2Extensions::Get(static_cast<unsigned>(contextId), true);
         if (!extensions)
             return;
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
         if (!extensions->isGlslSupported())
             return;
         value = extensions->getLanguageVersion();
@@ -363,7 +363,7 @@ public:
            = GL2Extensions::Get(static_cast<unsigned>(contextId), true);
        if (!extensions)
            return;
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
        value = extensions->isGlslSupported();
 #else
        value = extensions->isGlslSupported;
index 7800839c414452f0e3f5be5339fc1de3de060ffc..39a46ddd1f7bf7e3bf39e0085ee91c2d9984dd1d 100644 (file)
@@ -128,7 +128,7 @@ void CloudShaderGeometry::drawImplementation(RenderInfo& renderInfo) const
         sortData.frameSorted = frameNumber;
     }
 
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
     const Extensions* extensions = getExtensions(state.getContextID(),true);
 #else
     const GLExtensions* extensions = GLExtensions::Get(state.getContextID(), true);
index ac9ec93718466d7d6e5b82d41030b5c8ac2c4876..cef2878690b1be6818aa50b274b5f3b5f7cbccf8 100644 (file)
@@ -47,7 +47,7 @@ void ShaderGeometry::addObject(const Vec3& position, float scale,
 void ShaderGeometry::drawImplementation(osg::RenderInfo& renderInfo) const
 {
     State& state = *renderInfo.getState();
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
     const Extensions* extensions = getExtensions(state.getContextID(), true);
 #else
     const GLExtensions* extensions = GLExtensions::Get(state.getContextID(), true);
index 79f182f96a270c4b25a0187a30323e2fa0302a3f..07b8dc48cf7b1ab26353185b0bcae463af94640c 100644 (file)
@@ -86,7 +86,7 @@ SGSceneFeatures::setTextureCompression(osg::Texture* texture) const
 bool
 SGSceneFeatures::getHavePointSprites(unsigned contextId) const
 {
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
   return osg::PointSprite::isPointSpriteSupported(contextId);
 #else
   const osg::GLExtensions* ex = osg::GLExtensions::Get(contextId, true);
@@ -97,7 +97,7 @@ SGSceneFeatures::getHavePointSprites(unsigned contextId) const
 bool
 SGSceneFeatures::getHaveFragmentPrograms(unsigned contextId) const
 {
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
   const osg::FragmentProgram::Extensions* fpe;
   fpe = osg::FragmentProgram::getExtensions(contextId, true);
   if (!fpe)
@@ -115,7 +115,7 @@ SGSceneFeatures::getHaveFragmentPrograms(unsigned contextId) const
 bool
 SGSceneFeatures::getHaveVertexPrograms(unsigned contextId) const
 {
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
   const osg::VertexProgram::Extensions* vpe;
   vpe = osg::VertexProgram::getExtensions(contextId, true);
   if (!vpe)
@@ -141,7 +141,7 @@ SGSceneFeatures::getHaveShaderPrograms(unsigned contextId) const
 bool
 SGSceneFeatures::getHavePointParameters(unsigned contextId) const
 {
-#if OSG_VERSION_LESS_THAN(3,3,3)
+#if OSG_VERSION_LESS_THAN(3,3,4)
   const osg::Point::Extensions* pe;
   pe = osg::Point::getExtensions(contextId, true);
   if (!pe)