Set the minimum required OpenGL profiles for the geometry and tessellation shader test cases. Resolves #1357

master
rvandoosselaer 5 years ago committed by Stephen Gold
parent f3d81d11a1
commit 3fa85bc139
  1. 4
      jme3-examples/src/main/java/jme3test/material/TestGeometryShader.java
  2. 7
      jme3-examples/src/main/java/jme3test/material/TestTessellationShader.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();
}
}

@ -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();
}
}

Loading…
Cancel
Save