comparison src/video/SDL_renderer_gl.c @ 3262:e3d33bd599eb

Stefan Ullinger Hi, so here we go: GL_LINE_SMOOTH bad for business! ;) I checked the code within SDL_renderer_gl.c / GL_CreateRenderer(..) and have found the reason for blurred lines when using OpenGL. I have attached 2 images here. I don't know whether this has to be changed and I don't know if there is an option to turn it off/on...just wanted to say that with GL_LINE_SMOOTH enabled there is a difference when rendering with opengl compared to directx.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 19 Sep 2009 04:43:41 +0000
parents 5d7ef5970073
children 8fe0806637df
comparison
equal deleted inserted replaced
3261:72b542f34739 3262:e3d33bd599eb
421 /* Set up parameters for rendering */ 421 /* Set up parameters for rendering */
422 data->blendMode = -1; 422 data->blendMode = -1;
423 data->scaleMode = -1; 423 data->scaleMode = -1;
424 data->glDisable(GL_DEPTH_TEST); 424 data->glDisable(GL_DEPTH_TEST);
425 data->glDisable(GL_CULL_FACE); 425 data->glDisable(GL_CULL_FACE);
426 data->glEnable(GL_LINE_SMOOTH); 426 /* This ended up causing video discrepancies between OpenGL and Direct3D */
427 /*data->glEnable(GL_LINE_SMOOTH);*/
427 if (data->GL_ARB_texture_rectangle_supported) { 428 if (data->GL_ARB_texture_rectangle_supported) {
428 data->glEnable(GL_TEXTURE_RECTANGLE_ARB); 429 data->glEnable(GL_TEXTURE_RECTANGLE_ARB);
429 } else { 430 } else {
430 data->glEnable(GL_TEXTURE_2D); 431 data->glEnable(GL_TEXTURE_2D);
431 } 432 }