diff options
author | pixel <pixel> | 2003-01-21 03:00:13 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-01-21 03:00:13 +0000 |
commit | 38a65f1d57c4dc65dcce9056725ce26e0474eabc (patch) | |
tree | 5cd44b75ad4a152fb299f33994a17c76b4fadd11 /lib/gltexture.cc | |
parent | cbb8340d3b139596e94f2caa3ca51577d8fa3d0e (diff) |
Fixing more things...
Diffstat (limited to 'lib/gltexture.cc')
-rw-r--r-- | lib/gltexture.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/gltexture.cc b/lib/gltexture.cc index 49a5157..76cfe5a 100644 --- a/lib/gltexture.cc +++ b/lib/gltexture.cc @@ -1,6 +1,5 @@ #include <sys/types.h> #include <SDL.h> -#include <SDL_image.h> #include <SDL_opengl.h> #include <generic.h> #include "gltexture.h" @@ -56,11 +55,16 @@ mogltk::texture::texture(Handle * h, bool plane) throw (GeneralException) : SDL_Surface * temp; +#if 0 if (!(temp = IMG_Load_RW(engine::RWFromHandle(h), 1))) throw GeneralException(_("Can't load image from Handle ") + h->GetName()); - + width = temp->w; height = temp->h; +#else + width = 256; + height = 256; +#endif if ((BITCOUNT(width) != 1) || (BITCOUNT(height) != 1)) { SDL_FreeSurface(temp); @@ -84,8 +88,10 @@ mogltk::texture::texture(Handle * h, bool plane) throw (GeneralException) : throw GeneralException(_("Can't create RGB Surface")); } +#if 0 SDL_BlitSurface(temp, 0, surface, 0); SDL_FreeSurface(temp); +#endif #ifdef TRACE_TEXTURES next = 0; |