diff options
Diffstat (limited to 'src/mbgl/gl/program.hpp')
-rw-r--r-- | src/mbgl/gl/program.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp index 1cec7671a1..92747e60c4 100644 --- a/src/mbgl/gl/program.hpp +++ b/src/mbgl/gl/program.hpp @@ -168,7 +168,7 @@ public: const gfx::IndexBuffer& indexBuffer, std::size_t indexOffset, std::size_t indexLength) override { - auto& context = reinterpret_cast<gl::Context&>(genericContext); + auto& context = static_cast<gl::Context&>(genericContext); context.setDepthMode(depthMode); context.setStencilMode(stencilMode); @@ -194,7 +194,7 @@ public: instance.textureStates.bind(context, textureBindings); - auto& vertexArray = reinterpret_cast<gl::DrawScopeResource&>(*drawScope.resource).vertexArray; + auto& vertexArray = static_cast<gl::DrawScopeResource&>(*drawScope.resource).vertexArray; vertexArray.bind(context, indexBuffer, instance.attributeLocations.toBindingArray(attributeBindings)); |