From a4868565bf73013a8cf659114ae053f3c2b5a56f Mon Sep 17 00:00:00 2001 From: AdmiralPellaeon Date: Fri, 5 Jan 2024 20:03:24 +0100 Subject: [PATCH] GLSupport: const correct GLSLPreprocessor missing 'const' lead to error in C++20 --- RenderSystems/GLSupport/include/GLSL/OgreGLSLPreprocessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RenderSystems/GLSupport/include/GLSL/OgreGLSLPreprocessor.h b/RenderSystems/GLSupport/include/GLSL/OgreGLSLPreprocessor.h index d87a01b7ccc..eb43074219c 100644 --- a/RenderSystems/GLSupport/include/GLSL/OgreGLSLPreprocessor.h +++ b/RenderSystems/GLSupport/include/GLSL/OgreGLSLPreprocessor.h @@ -161,7 +161,7 @@ namespace Ogre { void SetValue (long iValue); /// Test two tokens for equality - bool operator == (const Token &iOther) + bool operator == (const Token &iOther) const { if (iOther.Length != Length) return false;