Changeset 13041 for OpenSceneGraph/trunk/src/osg/BlendEquation.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/BlendEquation.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/BlendEquation.cpp
r11472 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 45 45 { 46 46 47 // get the contextID (user defined ID of 0 upwards) for the 47 // get the contextID (user defined ID of 0 upwards) for the 48 48 // current OpenGL context. 49 49 const unsigned int contextID = state.getContextID(); 50 50 51 51 const Extensions* extensions = getExtensions(contextID,true); 52 52 53 53 if (!extensions->isBlendEquationSupported()) 54 54 { … … 126 126 { 127 127 bool bultInSupport = OSG_GLES2_FEATURES || OSG_GL3_FEATURES; 128 _isBlendEquationSupported = bultInSupport || 129 isGLExtensionSupported(contextID, "GL_EXT_blend_equation") || 128 _isBlendEquationSupported = bultInSupport || 129 isGLExtensionSupported(contextID, "GL_EXT_blend_equation") || 130 130 strncmp((const char*)glGetString(GL_VERSION), "1.2", 3) >= 0; 131 131 132 132 _isBlendEquationSeparateSupported = bultInSupport || 133 isGLExtensionSupported(contextID, "GL_EXT_blend_equation_separate") || 133 isGLExtensionSupported(contextID, "GL_EXT_blend_equation_separate") || 134 134 strncmp((const char*)glGetString(GL_VERSION), "2.0", 3) >= 0; 135 135
