comparison src/video/SDL_renderer_gl.c @ 2893:e67f3f3bf221

Turn on line antialiasing (requires blending to be enabled)
author Sam Lantinga <slouken@libsdl.org>
date Sat, 20 Dec 2008 18:40:30 +0000
parents 9dde605c7540
children 133601e3b255
comparison
equal deleted inserted replaced
2892:e4bafaa29c65 2893:e67f3f3bf221
423 /* Set up parameters for rendering */ 423 /* Set up parameters for rendering */
424 data->blendMode = -1; 424 data->blendMode = -1;
425 data->scaleMode = -1; 425 data->scaleMode = -1;
426 data->glDisable(GL_DEPTH_TEST); 426 data->glDisable(GL_DEPTH_TEST);
427 data->glDisable(GL_CULL_FACE); 427 data->glDisable(GL_CULL_FACE);
428 data->glEnable(GL_LINE_SMOOTH);
428 if (data->GL_ARB_texture_rectangle_supported) { 429 if (data->GL_ARB_texture_rectangle_supported) {
429 data->glEnable(GL_TEXTURE_RECTANGLE_ARB); 430 data->glEnable(GL_TEXTURE_RECTANGLE_ARB);
430 } else { 431 } else {
431 data->glEnable(GL_TEXTURE_2D); 432 data->glEnable(GL_TEXTURE_2D);
432 } 433 }