diff Renderer/Engine/SceneGraph.cc @ 994:33616b2789de

SDL mode fix
author yutaka@charles.cr.ie.u-ryukyu.ac.jp
date Mon, 11 Oct 2010 14:21:02 +0900
parents b2f7d2ad3804
children 78ebcdaae8bc
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraph.cc	Sat Oct 09 19:11:45 2010 +0900
+++ b/Renderer/Engine/SceneGraph.cc	Mon Oct 11 14:21:02 2010 +0900
@@ -453,12 +453,12 @@
     SDL_Surface *texture_image = IMG_Load(image_name);
     if (!texture_image) return 0;
     SDL_Surface *tmpImage
-        = SDL_CreateRGBSurface(SDL_HWSURFACE, texture_image->w,
+        = SDL_CreateRGBSurface(SDL_SWSURFACE, texture_image->w,
                                texture_image->h, 32, redMask,
                                greenMask, blueMask, alphaMask);
     SDL_Surface *converted;
     converted = SDL_ConvertSurface(texture_image, tmpImage->format,
-                                   SDL_HWSURFACE);
+                                   SDL_SWSURFACE);
     if (converted != NULL) {
         SDL_FreeSurface(texture_image);
         texture_image = converted;