From 4dc6aa9aec60dc69bf934d58d357b442d7802af8 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 19 Mar 2014 14:22:00 -0700 Subject: [PATCH] don't attempt texture binding before the texture pool is setup --- src/util/raster.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/util/raster.cpp b/src/util/raster.cpp index 121fe53bc..566f0941e 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);