Removed direct OpenGL calls in the SDL Window module

This commit is contained in:
Alex Szpakowski
2013-01-30 00:27:46 -04:00
parent 8fba362fc5
commit a9211a1389
4 changed files with 19 additions and 28 deletions
+7
View File
@@ -127,6 +127,9 @@ bool Graphics::setMode(int width, int height, bool fullscreen, bool vsync, int f
initializeContext();
// Make sure antialiasing works when set elsewhere
glEnable(GL_MULTISAMPLE);
// Enable blending
glEnable(GL_BLEND);
@@ -138,6 +141,10 @@ bool Graphics::setMode(int width, int height, bool fullscreen, bool vsync, int f
glEnable(GL_POINT_SMOOTH);
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
// Auto-generated mipmaps should be the best quality possible
if (GLEE_VERSION_1_4 || GLEE_SGIS_generate_mipmap)
glHint(GL_GENERATE_MIPMAP_HINT, GL_NICEST);
// Enable textures
glEnable(GL_TEXTURE_2D);
setActiveTextureUnit(0);
@@ -1391,7 +1391,7 @@ extern "C" int luaopen_love_graphics(lua_State *L)
{
instance = new Graphics();
}
catch(Exception &e)
catch (love::Exception &e)
{
return luaL_error(L, e.what());
}