SDL_RenderDrawLine endpoint inconsistency |
rtrussell
|
Here's a test case to demonstrate the issue. It should draw a white square on a blue background, with all four corner pixels drawn, and this is what happens in Windows and Mac OS. But in Linux (Ubuntu 16.04, SDL 2.0.4) it draws only two horizontal lines. Can somebody confirm this, or if they find it is working correctly report on what version of Linux/OpenGL/SDL they are using:
Richard. |
|||||||||||||
|
rtrussell
|
Since nobody has ventured an opinion I've looked at the source and there seems to be code specifically to make Linux behave differently; the trouble is, according to my tests, it makes Linux behave wrongly:
sdl_render_gl.c:
It seems unlikely that OpenGL works differently on Linux by design so should this code still be in SDL? Richard. |
|||||||||||||
|