From 7cb1c48bbc43974d8311bcdb4c7ad3244c071088 Mon Sep 17 00:00:00 2001 From: Alexander Galazin Date: Mon, 3 Feb 2020 10:49:48 +0100 Subject: [PATCH] Fix compiler warning Components: OpenGL Change-Id: Ie61463fcd7d5ad006e364a8b18505af0a23ebf73 --- framework/opengl/gluContextInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/opengl/gluContextInfo.cpp b/framework/opengl/gluContextInfo.cpp index a253a2e..81ada61 100644 --- a/framework/opengl/gluContextInfo.cpp +++ b/framework/opengl/gluContextInfo.cpp @@ -251,15 +251,15 @@ bool ContextInfo::isES3Compatible() const { // Detect compatible GLES context by querying GL_MAJOR_VERSION. // This query does not exist on GLES2 so succeeding query implies GLES3+ context. - bool isES3Compatible = false; + bool _isES3Compatible = false; glw::GLint majorVersion = 0; const glw::Functions& gl = m_context.getFunctions(); gl.getError(); gl.getIntegerv(GL_MAJOR_VERSION, &majorVersion); if (gl.getError() == GL_NO_ERROR) - isES3Compatible = true; + _isES3Compatible = true; - return isES3Compatible; + return _isES3Compatible; } ContextInfo* ContextInfo::create (const RenderContext& context) -- 2.7.4