From 3fa85bc139adaf38cb95e03130bf329c48743121 Mon Sep 17 00:00:00 2001 From: rvandoosselaer Date: Tue, 21 Apr 2020 22:03:20 +0200 Subject: [PATCH] Set the minimum required OpenGL profiles for the geometry and tessellation shader test cases. Resolves #1357 --- .../main/java/jme3test/material/TestGeometryShader.java | 4 ++++ .../java/jme3test/material/TestTessellationShader.java | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/jme3-examples/src/main/java/jme3test/material/TestGeometryShader.java b/jme3-examples/src/main/java/jme3test/material/TestGeometryShader.java index 04c8223f1..0199d70cc 100644 --- a/jme3-examples/src/main/java/jme3test/material/TestGeometryShader.java +++ b/jme3-examples/src/main/java/jme3test/material/TestGeometryShader.java @@ -8,6 +8,7 @@ import com.jme3.scene.Geometry; import com.jme3.scene.Mesh; import com.jme3.scene.VertexBuffer; import com.jme3.scene.shape.Sphere; +import com.jme3.system.AppSettings; import com.jme3.util.BufferUtils; /** @@ -37,6 +38,9 @@ public class TestGeometryShader extends SimpleApplication { public static void main(String[] args) { TestGeometryShader app = new TestGeometryShader(); + AppSettings settings = new AppSettings(true); + settings.setRenderer(AppSettings.LWJGL_OPENGL33); + app.setSettings(settings); app.start(); } } diff --git a/jme3-examples/src/main/java/jme3test/material/TestTessellationShader.java b/jme3-examples/src/main/java/jme3test/material/TestTessellationShader.java index dbf93811f..576b79392 100644 --- a/jme3-examples/src/main/java/jme3test/material/TestTessellationShader.java +++ b/jme3-examples/src/main/java/jme3test/material/TestTessellationShader.java @@ -9,6 +9,7 @@ import com.jme3.scene.Geometry; import com.jme3.scene.Mesh; import com.jme3.scene.VertexBuffer; import com.jme3.scene.shape.Quad; +import com.jme3.system.AppSettings; import com.jme3.util.BufferUtils; import java.util.concurrent.Callable; @@ -63,6 +64,10 @@ public class TestTessellationShader extends SimpleApplication { } public static void main(String[] args) { - new TestTessellationShader().start(); + TestTessellationShader app = new TestTessellationShader(); + AppSettings settings = new AppSettings(true); + settings.setRenderer(AppSettings.LWJGL_OPENGL40); + app.setSettings(settings); + app.start(); } }