summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 23:37:44 +0300
commit94d1c10727ceb2c0e245aeb3c255102da185440c (patch)
tree2f93534ca3dac24b3d3f566faa0b11fbf72177b9 /src/mbgl/gl
parent2ca3fc24a1eedda8fb6fed1fa56033717376e0d7 (diff)
downloadqtlocation-mapboxgl-94d1c10727ceb2c0e245aeb3c255102da185440c.tar.gz
[core] Fix readability-* errors
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r--src/mbgl/gl/value.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mbgl/gl/value.cpp b/src/mbgl/gl/value.cpp
index bd08ac48fc..51f76e1745 100644
--- a/src/mbgl/gl/value.cpp
+++ b/src/mbgl/gl/value.cpp
@@ -90,7 +90,9 @@ void StencilFunc::Set(const Type& value) {
}
StencilFunc::Type StencilFunc::Get() {
- GLint func, ref, mask;
+ GLint func;
+ GLint ref;
+ GLint mask;
MBGL_CHECK_ERROR(glGetIntegerv(GL_STENCIL_FUNC, &func));
MBGL_CHECK_ERROR(glGetIntegerv(GL_STENCIL_REF, &ref));
MBGL_CHECK_ERROR(glGetIntegerv(GL_STENCIL_VALUE_MASK, &mask));
@@ -118,7 +120,9 @@ void StencilOp::Set(const Type& value) {
}
StencilOp::Type StencilOp::Get() {
- GLint sfail, dpfail, dppass;
+ GLint sfail;
+ GLint dpfail;
+ GLint dppass;
MBGL_CHECK_ERROR(glGetIntegerv(GL_STENCIL_FAIL, &sfail));
MBGL_CHECK_ERROR(glGetIntegerv(GL_STENCIL_PASS_DEPTH_FAIL, &dpfail));
MBGL_CHECK_ERROR(glGetIntegerv(GL_STENCIL_PASS_DEPTH_PASS, &dppass));
@@ -195,7 +199,8 @@ void BlendFunc::Set(const Type& value) {
}
BlendFunc::Type BlendFunc::Get() {
- GLint sfactor, dfactor;
+ GLint sfactor;
+ GLint dfactor;
MBGL_CHECK_ERROR(glGetIntegerv(GL_BLEND_SRC_ALPHA, &sfactor));
MBGL_CHECK_ERROR(glGetIntegerv(GL_BLEND_DST_ALPHA, &dfactor));
return { Enum<gfx::ColorBlendFactorType>::from(sfactor),
@@ -549,7 +554,8 @@ void PixelZoom::Set(const Type& value) {
}
PixelZoom::Type PixelZoom::Get() {
- GLfloat xfactor, yfactor;
+ GLfloat xfactor;
+ GLfloat yfactor;
MBGL_CHECK_ERROR(glGetFloatv(GL_ZOOM_X, &xfactor));
MBGL_CHECK_ERROR(glGetFloatv(GL_ZOOM_Y, &yfactor));
return { xfactor, yfactor };