summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sdl/platform.c8
1 files 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 */