Turn on line antialiasing (requires blending to be enabled)
authorSam Lantinga <slouken@libsdl.org>
Sat, 20 Dec 2008 18:40:30 +0000
changeset 2893 e67f3f3bf221
parent 2892 e4bafaa29c65
child 2894 e80f347b6d29
Turn on line antialiasing (requires blending to be enabled)
src/video/SDL_renderer_gl.c
--- a/src/video/SDL_renderer_gl.c	Sat Dec 20 18:26:06 2008 +0000
+++ b/src/video/SDL_renderer_gl.c	Sat Dec 20 18:40:30 2008 +0000
@@ -425,6 +425,7 @@
     data->scaleMode = -1;
     data->glDisable(GL_DEPTH_TEST);
     data->glDisable(GL_CULL_FACE);
+    data->glEnable(GL_LINE_SMOOTH);
     if (data->GL_ARB_texture_rectangle_supported) {
         data->glEnable(GL_TEXTURE_RECTANGLE_ARB);
     } else {