[core] Value stored to 'format' is never read in Context::drawPixels

Captured via clang-analyzer-deadcode.DeadStores.
This commit is contained in:
Bruno de Oliveira Abinader
2017-03-31 14:55:55 +03:00
parent f0b683237d
commit 83d22a5bd4

View File

@@ -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