From bf72299223526f2a138a1c384f1cf9e6a679987a Mon Sep 17 00:00:00 2001 From: "bart@bartbes.ath.cx" Date: Sun, 18 Apr 2010 23:40:01 +0200 Subject: [PATCH 1/2] Fixed bug/epic fail in loader --- src/modules/filesystem/physfs/wrap_Filesystem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/filesystem/physfs/wrap_Filesystem.cpp b/src/modules/filesystem/physfs/wrap_Filesystem.cpp index 330a452da..2218f9fb2 100644 --- a/src/modules/filesystem/physfs/wrap_Filesystem.cpp +++ b/src/modules/filesystem/physfs/wrap_Filesystem.cpp @@ -212,7 +212,10 @@ namespace physfs int size = tmp.size(); if(size <= 4 || strcmp(filename + (size-4), ".lua") != 0) + { tmp.append(".lua"); + size = tmp.size(); + } for(int i=0;i Date: Mon, 19 Apr 2010 16:18:51 +0200 Subject: [PATCH 2/2] Should now fall back to no FSAA when it is not available at all --- src/modules/graphics/opengl/Graphics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index d3d08cc38..177a7cefe 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -198,6 +198,12 @@ namespace opengl // FSAA might have failed, disable it and try again SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0); failed = SDL_SetVideoMode(width, height, 32, sdlflags ) == 0; + if (failed) + { + // There might be no FSAA at all + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 0); + failed = SDL_SetVideoMode(width, height, 32, sdlflags ) == 0; + } } if(failed) {