From acd95168eb2c865b49dc43710286cb470f91bb0e Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 19 Mar 2014 14:26:15 -0700 Subject: [PATCH] re-bind texture in right circumstances --- src/util/raster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/raster.cpp b/src/util/raster.cpp index 566f0941e..3263d254b 100644 --- a/src/util/raster.cpp +++ b/src/util/raster.cpp @@ -163,7 +163,7 @@ void Raster::bind(bool linear) { free(img); img = nullptr; textured = true; - } else { + } else if (textured) { glBindTexture(GL_TEXTURE_2D, texture); }