diff options
author | Kyle K <kylek389@gmail.com> | 2011-08-09 21:10:28 -0500 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2011-08-09 21:10:28 -0500 |
commit | 3e4928127f77a48c0a3bcf51859f0544e73bc179 (patch) | |
tree | 8248178e0f076f09b9cfc3620f34bbdbca3f3ad2 /sdl | |
parent | 49291811330624761600b91ad8d01abd4e9d4b96 (diff) | |
download | GLPyramid-3e4928127f77a48c0a3bcf51859f0544e73bc179.tar.gz GLPyramid-3e4928127f77a48c0a3bcf51859f0544e73bc179.tar.bz2 GLPyramid-3e4928127f77a48c0a3bcf51859f0544e73bc179.zip |
Diffstat (limited to 'sdl')
-rw-r--r-- | sdl/platform.c | 8 |
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 */ |