LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File not-a-constexpr.patch of Package springrts (Project games)

diff -Nur spring_104.0/rts/Rendering/GL/myGL.cpp spring_104.0-patched/rts/Rendering/GL/myGL.cpp
--- spring_104.0/rts/Rendering/GL/myGL.cpp	2017-09-24 20:01:29.000000000 +0200
+++ spring_104.0-patched/rts/Rendering/GL/myGL.cpp	2019-03-13 22:54:24.999054985 +0100
@@ -146,8 +146,8 @@
 
 	typedef PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC QCRIProc;
 
-	static constexpr const GLubyte* qcriProcName = (const GLubyte*) "glXQueryCurrentRendererIntegerMESA";
-	static           const QCRIProc qcriProcAddr = (QCRIProc) glXGetProcAddress(qcriProcName);
+	static const GLubyte* qcriProcName = (const GLubyte*) "glXQueryCurrentRendererIntegerMESA";
+	static const QCRIProc qcriProcAddr = (QCRIProc) glXGetProcAddress(qcriProcName);
 
 	if (qcriProcAddr == nullptr)
 		return false;