diff options
author | pixel <pixel> | 2003-03-17 07:44:36 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-17 07:44:36 +0000 |
commit | 05d399c049f3f8a84bbc2e81f1636c911cec7e26 (patch) | |
tree | 2ddeeec028a60009731785e327bc174357f2987e /lib/gltexture.cc | |
parent | a0ec1cffa6b75030344632083b2b1b63c0cfcf0a (diff) |
Widgets
Diffstat (limited to 'lib/gltexture.cc')
-rw-r--r-- | lib/gltexture.cc | 6 |
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; } |