Skip to content

Commit 311a192

Browse files
committed
fix: fix the canvas tearing problem with lwjglx
1 parent 5df5ffa commit 311a192

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglCanvas.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@
8181

8282
/**
8383
* Class <code>LwjglCanvas</code> that integrates <a href="https://github.com/LWJGLX/lwjgl3-awt">LWJGLX</a>
84-
* which allows using AWT-Swing components.
84+
* which allows using AWT-Swing components, make sure you use an OpenGL renderer:
85+
* <pre><code>
86+
* settings.setRenderer(AppSettings.LWJGL_OPENGL32);
87+
* </code></pre>
8588
*
8689
* <p>
8790
* If <b>LwjglCanvas</b> throws an exception due to configuration problems, we can debug as follows:
@@ -101,8 +104,7 @@
101104
* <pre><code>
102105
* ....
103106
* AppSettings settings = new AppSettings(true);
104-
* settings.setGammaCorrection(true);
105-
* settings.setRenderer(AppSettings.LWJGL_OPENGL32);
107+
* settings.setGammaCorrection(false);
106108
* ...
107109
* </code></pre>
108110
*

0 commit comments

Comments
 (0)