diff options
Diffstat (limited to 'src/mbgl/util/offscreen_texture.cpp')
-rw-r--r-- | src/mbgl/util/offscreen_texture.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/util/offscreen_texture.cpp b/src/mbgl/util/offscreen_texture.cpp index e396aabef6..194527d1b0 100644 --- a/src/mbgl/util/offscreen_texture.cpp +++ b/src/mbgl/util/offscreen_texture.cpp @@ -1,4 +1,5 @@ #include <mbgl/gl/context.hpp> +#include <mbgl/gl/gl.hpp> #include <mbgl/util/offscreen_texture.hpp> #include <cassert> @@ -51,7 +52,7 @@ void OffscreenTexture::bind(gl::Context& context, context.bindFramebuffer = *framebuffer; } - context.viewport = { { 0, 0, static_cast<GLint>(size[0]), static_cast<GLint>(size[1]) } }; + context.viewport = { 0, 0, size[0], size[1] }; } Raster& OffscreenTexture::getTexture() { |