From 3e4928127f77a48c0a3bcf51859f0544e73bc179 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Tue, 9 Aug 2011 21:10:28 -0500 Subject: sdl: enable multisampling after the checks --- sdl/platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdl/platform.c b/sdl/platform.c index 7ed4f99..04ce3b3 100644 --- a/sdl/platform.c +++ b/sdl/platform.c @@ -178,16 +178,16 @@ void setup_opengl(void) * the focus of the specular highlight, causing a shiny spot to appear */ glMateriali(GL_FRONT, GL_SHININESS, 64); - /* multisampling for polygons, conflicts with *polygon* anti-aliasing */ - /* enabled by default, that's what man page says, hmmm! */ - glEnable(GL_MULTISAMPLE); - if (glIsEnabled(GL_MULTISAMPLE) == GL_FALSE) { fprintf(stderr, "OpenGL error: multisampling cannot be enabled!\n"); exit(-1); } + /* multisampling for polygons, conflicts with *polygon* anti-aliasing */ + /* enabled by default, that's what man page says, hmmm! */ + glEnable(GL_MULTISAMPLE); + /* turn off AA forever, it enables blending globally, so depth test goes out * of the window, blended objects should be rendered in back to front order, * also, following lines are ignored by OpenGL if multisampling is enabled */ -- cgit v1.2.3