Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit f0a6f31

Browse files
committed
fix some glitches
1 parent 535c481 commit f0a6f31

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

example/lwjgl3-opengl/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dependencies {
3838
implementation group: 'org.lwjgl', name: 'lwjgl-glfw', version: '3.2.2'
3939
runtimeOnly group: 'org.lwjgl', name: 'lwjgl-glfw', version: '3.2.2', classifier: lwjglClassifier()
4040

41+
implementation group:'com.google.code.gson', name:'gson', version: '2.8.6'
4142
}
4243

4344
def runDir = file("run")

example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/ExampleApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public void run() {
228228
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
229229

230230
// Load a local test file
231-
webController.loadURL("file:///example.html");
231+
webController.loadURL("http://localhost:8080");
232232

233233
double lastTime = glfwGetTime();
234234
int frameCount = 0;

example/lwjgl3-opengl/src/main/java/com/labymedia/ultralight/lwjgl3/opengl/support/WebController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public WebController(CursorAdapter cursorManager, long window) {
6767

6868
this.platform.setConfig(
6969
new UltralightConfig()
70+
.forceRepaint(true)
7071
.resourcePath("./resources/")
7172
.fontHinting(FontHinting.NORMAL)
7273
);

0 commit comments

Comments
 (0)