diff options
author | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-28 18:11:55 +0100 |
---|---|---|
committer | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-28 18:30:27 +0100 |
commit | cd23817bf1884fee4457ab3381320b0c8fc33f48 (patch) | |
tree | 9440ff3b0386ca9e3b1bac9eda168741ec6debb3 /source/application/StarRenderer_opengl20.cpp | |
parent | 28d486446ca176ef0168a7284d85cb49a75a54fb (diff) |
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
Diffstat (limited to 'source/application/StarRenderer_opengl20.cpp')
-rw-r--r-- | source/application/StarRenderer_opengl20.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<RenderPrimitive>& primitives) { float textureIndex = 0.0f; Vec2F textureOffset = {}; - Texture* lastTexture = nullptr; for (auto& primitive : primitives) { if (auto tri = primitive.ptr<RenderTriangle>()) { tie(textureIndex, textureOffset) = addCurrentTexture(std::move(tri->texture)); @@ -781,7 +780,7 @@ bool OpenGl20Renderer::logGlErrorSummary(String prefix) { } else { Logger::error("<UNRECOGNIZED GL 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"); |