summaryrefslogtreecommitdiff
path: root/lib/gltexture.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gltexture.cc')
-rw-r--r--lib/gltexture.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gltexture.cc b/lib/gltexture.cc
index 9b8f7e3..b0bc7c4 100644
--- a/lib/gltexture.cc
+++ b/lib/gltexture.cc
@@ -169,6 +169,7 @@ void mogltk::texture::Generate() {
glBindTexture(GL_TEXTURE_2D, tex);
+#if 0
if (planar) {
#ifdef DEBUG
printm(M_INFO, _("Generating planar texture: %i\n"), tex);
@@ -177,6 +178,7 @@ void mogltk::texture::Generate() {
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, surface->pixels);
} else {
+#endif
#ifdef DEBUG
printm(M_INFO, _("Generating 3D texture: %i\n"), tex);
#endif
@@ -186,8 +188,10 @@ void mogltk::texture::Generate() {
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, width, height, GL_RGBA, GL_UNSIGNED_BYTE, surface->pixels);
// glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, surface->pixels);
+#if 0
}
-
+#endif
+
texture_allocated = true;
tainted = false;
}