From 05d399c049f3f8a84bbc2e81f1636c911cec7e26 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 17 Mar 2003 07:44:36 +0000 Subject: Widgets --- lib/gltexture.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/gltexture.cc') 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; } -- cgit v1.2.3