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