summaryrefslogtreecommitdiff
path: root/src/util/raster.cpp
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2014-03-19 14:22:00 -0700
committerJustin R. Miller <incanus@codesorcery.net>2014-03-19 14:22:00 -0700
commit4dc6aa9aec60dc69bf934d58d357b442d7802af8 (patch)
treebf8199a97cb3c2e0c6bb8d996d29f1d7870d878b /src/util/raster.cpp
parent00a3245ce8c43f9d74d0627170a22b123734c7eb (diff)
downloadqtlocation-mapboxgl-4dc6aa9aec60dc69bf934d58d357b442d7802af8.tar.gz
don't attempt texture binding before the texture pool is setup
Diffstat (limited to 'src/util/raster.cpp')
-rw-r--r--src/util/raster.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/raster.cpp b/src/util/raster.cpp
index 121fe53bca..566f0941e7 100644
--- a/src/util/raster.cpp
+++ b/src/util/raster.cpp
@@ -154,11 +154,7 @@ void Raster::bind(bool linear) {
return;
}
- if (img && !textured) {
- if (!texturepool) {
- fprintf(stderr, "no available texture pool\n");
- return;
- }
+ if (img && !textured && texturepool) {
texture = texturepool->getTextureID();
glBindTexture(GL_TEXTURE_2D, texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);