summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mbgl/gl/context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/gl/context.cpp b/src/mbgl/gl/context.cpp
index 75931dc9de..565fe33771 100644
--- a/src/mbgl/gl/context.cpp
+++ b/src/mbgl/gl/context.cpp
@@ -285,7 +285,7 @@ void Context::drawPixels(const Size size, const void* data, TextureFormat format
if (format != TextureFormat::RGBA) {
format = static_cast<TextureFormat>(GL_LUMINANCE);
}
- MBGL_CHECK_ERROR(glDrawPixels(size.width, size.height, static_cast<GLenum>(GL_LUMINANCE),
+ MBGL_CHECK_ERROR(glDrawPixels(size.width, size.height, static_cast<GLenum>(format),
GL_UNSIGNED_BYTE, data));
}
#endif // MBGL_USE_GLES2