summaryrefslogtreecommitdiff
path: root/src/mbgl/gl
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2016-04-01 17:23:46 -0700
committerKonstantin Käfer <mail@kkaefer.com>2016-04-14 17:12:56 -0700
commitd2b9b1c348ba71189792f1f6ba6c450729cd9a12 (patch)
tree43a9bb848f23dc09e9489abfa41b068e438d510e /src/mbgl/gl
parentb55692132ae66b76a5136bf2ccffd112512f01e9 (diff)
downloadqtlocation-mapboxgl-d2b9b1c348ba71189792f1f6ba6c450729cd9a12.tar.gz
[core] always set activeTexture before binding a texture
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r--src/mbgl/gl/gl_config.cpp1
-rw-r--r--src/mbgl/gl/gl_config.hpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/gl/gl_config.cpp b/src/mbgl/gl/gl_config.cpp
index 4160ae100e..ecf987876c 100644
--- a/src/mbgl/gl/gl_config.cpp
+++ b/src/mbgl/gl/gl_config.cpp
@@ -19,6 +19,7 @@ const ClearColor::Type ClearColor::Default = { 0, 0, 0, 0 };
const ClearStencil::Type ClearStencil::Default = 0;
const Program::Type Program::Default = 0;
const LineWidth::Type LineWidth::Default = 1;
+const ActiveTexture::Type ActiveTexture::Default = GL_TEXTURE0;
} // namespace gl
} // namespace mbgl
diff --git a/src/mbgl/gl/gl_config.hpp b/src/mbgl/gl/gl_config.hpp
index af373fc3f8..8ec191daf7 100644
--- a/src/mbgl/gl/gl_config.hpp
+++ b/src/mbgl/gl/gl_config.hpp
@@ -55,6 +55,7 @@ public:
clearStencil.reset();
program.reset();
lineWidth.reset();
+ activeTexture.reset();
}
void setDirty() {
@@ -74,6 +75,7 @@ public:
clearStencil.setDirty();
program.setDirty();
lineWidth.setDirty();
+ activeTexture.setDirty();
}
Value<StencilFunc> stencilFunc;
@@ -92,6 +94,7 @@ public:
Value<ClearStencil> clearStencil;
Value<Program> program;
Value<LineWidth> lineWidth;
+ Value<ActiveTexture> activeTexture;
};
} // namespace gl