Line problem on amd and supertoast
Posted: Wed Nov 07, 2018 2:51 am
I'm coding a game and lately started to work on the menu, so I made a small lib to help me drawing box and menu element. So I was showing it to the person doing the gfx when I noticed there is a line issue only on her laptop. I realised it was an amd radeon card and I never tested the game on such hardware (only nvidia and intel), so I did test on another r5 240 where I could reproduce the issue. The problem is that line horizontal are always one pixel lower than with nvidia or intel gpu. Quads and other drawable elements (text, canvas, whatnot) are okay, it only seem to affect line horizontality, verticality is allright.
Here is an example of what it look like on nvidia and intel where the horizontal line are ok, and on amd where they are one pixel too low I've did some research on the forum but found nothing, maybe I am not searching the right keywords ? Also I'm using 0.10.2 (Super Toast), maybe it was a small glitch that could be fixed into another version of love2d.
You might have noticed that I allow the user to change the resolution of the screen, but it's only a framebuffer that I zoom from the original window of 320x240 :
I declare the window with : love.window.setMode(320,240,{vsync=true, fullscreen=false; resizable=false})
then zoom it with this : love.graphics.draw(frameBuffer2,0,0,0,configGFXmode,configGFXmode)
but the glitch is also present on 320x240.
Any input would be much appreciated as I've tried nothing and I'm all out of ideas.
Here is an example of what it look like on nvidia and intel where the horizontal line are ok, and on amd where they are one pixel too low I've did some research on the forum but found nothing, maybe I am not searching the right keywords ? Also I'm using 0.10.2 (Super Toast), maybe it was a small glitch that could be fixed into another version of love2d.
You might have noticed that I allow the user to change the resolution of the screen, but it's only a framebuffer that I zoom from the original window of 320x240 :
I declare the window with : love.window.setMode(320,240,{vsync=true, fullscreen=false; resizable=false})
then zoom it with this : love.graphics.draw(frameBuffer2,0,0,0,configGFXmode,configGFXmode)
but the glitch is also present on 320x240.
Any input would be much appreciated as I've tried nothing and I'm all out of ideas.