Commit 3c3ba9eb authored by Sam Lantinga's avatar Sam Lantinga

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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403803
parent 11921a8b
...@@ -423,7 +423,8 @@ GL_CreateRenderer(SDL_Window * window, Uint32 flags) ...@@ -423,7 +423,8 @@ GL_CreateRenderer(SDL_Window * window, Uint32 flags)
data->scaleMode = -1; data->scaleMode = -1;
data->glDisable(GL_DEPTH_TEST); data->glDisable(GL_DEPTH_TEST);
data->glDisable(GL_CULL_FACE); data->glDisable(GL_CULL_FACE);
data->glEnable(GL_LINE_SMOOTH); /* This ended up causing video discrepancies between OpenGL and Direct3D */
/*data->glEnable(GL_LINE_SMOOTH);*/
if (data->GL_ARB_texture_rectangle_supported) { if (data->GL_ARB_texture_rectangle_supported) {
data->glEnable(GL_TEXTURE_RECTANGLE_ARB); data->glEnable(GL_TEXTURE_RECTANGLE_ARB);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment