summaryrefslogtreecommitdiff
path: root/lib/gltexture.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gltexture.cc')
-rw-r--r--lib/gltexture.cc10
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;