From cd23817bf1884fee4457ab3381320b0c8fc33f48 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Wed, 28 Feb 2024 18:11:55 +0100 Subject: Fixed remaining compiler warnings Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed. --- source/application/StarRenderer_opengl20.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/application/StarRenderer_opengl20.cpp') diff --git a/source/application/StarRenderer_opengl20.cpp b/source/application/StarRenderer_opengl20.cpp index 18f771b..ac141a4 100644 --- a/source/application/StarRenderer_opengl20.cpp +++ b/source/application/StarRenderer_opengl20.cpp @@ -720,7 +720,6 @@ void OpenGl20Renderer::GlRenderBuffer::set(List& primitives) { float textureIndex = 0.0f; Vec2F textureOffset = {}; - Texture* lastTexture = nullptr; for (auto& primitive : primitives) { if (auto tri = primitive.ptr()) { tie(textureIndex, textureOffset) = addCurrentTexture(std::move(tri->texture)); @@ -781,7 +780,7 @@ bool OpenGl20Renderer::logGlErrorSummary(String prefix) { } else { Logger::error(""); } - } while (error = glGetError()); + } while ((error = glGetError())); return true; } return false; @@ -897,8 +896,6 @@ void OpenGl20Renderer::renderGlBuffer(GlRenderBuffer const& renderBuffer, Mat3F //Assumes the passed effect program is currently in use. void OpenGl20Renderer::setupGlUniforms(Effect& effect) { - GLuint program = effect.program; - m_positionAttribute = effect.getAttribute("vertexPosition"); m_texCoordAttribute = effect.getAttribute("vertexTextureCoordinate"); m_texIndexAttribute = effect.getAttribute("vertexTextureIndex"); -- cgit v1.2.3