From c238a7cca275239a0a48c66fc1c91eeb3492a5bd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 14 May 2013 16:18:41 +0000 Subject: [PATCH] From Michael Kapelko, "The provided patch (against SVN revision 13380) adds missing constness to returning calls (without it the user code does not compile)." --- include/osg/GL2Extensions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/osg/GL2Extensions b/include/osg/GL2Extensions index 4e5fa1651..ea4d3c4fb 100644 --- a/include/osg/GL2Extensions +++ b/include/osg/GL2Extensions @@ -519,16 +519,16 @@ class OSG_EXPORT GL2Extensions : public osg::Referenced bool isGpuShader4Supported() const { return _isGpuShader4Supported; } void setUniformBufferObjectSupported(bool flag) { _isUniformBufferObjectSupported = flag; } - bool isUniformBufferObjectSupported() {return _isUniformBufferObjectSupported; } + bool isUniformBufferObjectSupported() const {return _isUniformBufferObjectSupported; } void setGetProgramBinarySupported(bool flag) { _isGetProgramBinarySupported = flag; } - bool isGetProgramBinarySupported() {return _isGetProgramBinarySupported; } + bool isGetProgramBinarySupported() const {return _isGetProgramBinarySupported; } void setGpuShaderFp64Supported(bool flag) { _isGpuShaderFp64Supported = flag; } - bool isGpuShaderFp64Supported() {return _isGpuShaderFp64Supported; } + bool isGpuShaderFp64Supported() const {return _isGpuShaderFp64Supported; } void setShaderAtomicCounterSupported(bool flag) { _isShaderAtomicCountersSupported = flag; } - bool isShaderAtomicCounterSupported() {return _isShaderAtomicCountersSupported; } + bool isShaderAtomicCounterSupported() const {return _isShaderAtomicCountersSupported; } /** Function to call to get the extension of a specified context. * If the Exentsion object for that context has not yet been created then