[ad_1]
I followed this tutorial and the bug occurred when I ran this code on macOS. I did have to modify a few things to get it running but nothing that I think caused the following bug.
When I run the program the content of the window isn’t aligned:
But if I drag the window to the corner of the screen, the content lines up:
I suspect the issue lies within a library I used ImGui (for Java) because when I commented out the ImGui.update() function, the bug no longer occurred.
For some reason, the ImGui layer doesn’t move with the window.
I am using java 16, IntelliJ, Gradle, and OpenGL 3.3. Also important to note, in the tutorial which was run on Windows, the bug did not seem to happen.
[ad_2]