summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-03-31 14:55:55 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-03-31 15:51:40 +0300
commit83d22a5bd4f245dbd6893f68ff6a2298d6064922 (patch)
tree605e307e9e7a0fe4c76393a7c26d98a8e0523f87
parentf0b683237d2000aa9cda819db93c1e9089fcd103 (diff)
downloadqtlocation-mapboxgl-83d22a5bd4f245dbd6893f68ff6a2298d6064922.tar.gz
[core] Value stored to 'format' is never read in Context::drawPixels
Captured via clang-analyzer-deadcode.DeadStores.
-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