Page 1 of 1

Love-imgui canvas render acting strange on focus

Posted: Sun Feb 10, 2019 9:27 am
by Zulsorai
So I've been playing around with the Love-imgui library lately and have been having some issues when I render a canvas to a window.

It seems to render fine until the window object becomes the focus, once it does all the text renders as blocks and lines become thicker.

However, if I click on the top menu bar it renders correctly again. Stranger yet if I open the Demo window provided by the library and enable the 'io.MouseDrawCursor' under 'Input and Focus', this seems to solve the issue.

I was wondering if anyone else has come across this issue when using this library, or if I've just managed to implement it wrong.
I've been looking at the source files and can't see anything obvious why toggling this would cause the image to render differently. Though to be fair I don't really know C++.

Just some quick notes:
Windows 10
Love 11.2 64
Using the prebuilt 64bit imgui.dll library on camchenry's fork: https://github.com/camchenry/love-imgui/releases

New-Project.love
(10.97 KiB) Downloaded 147 times
WASD: move green ball

Re: Love-imgui canvas render acting strange on focus

Posted: Sun Feb 10, 2019 9:44 am
by grump
Sounds like something sets a blendmode but fails to restore the previous one.