Set the minimum required OpenGL profiles for the geometry and tessellation shader test cases. Resolves #1357
This commit is contained in:
parent
9a5b3864b2
commit
4b62b70a5b
@ -8,6 +8,7 @@ import com.jme3.scene.Geometry;
|
|||||||
import com.jme3.scene.Mesh;
|
import com.jme3.scene.Mesh;
|
||||||
import com.jme3.scene.VertexBuffer;
|
import com.jme3.scene.VertexBuffer;
|
||||||
import com.jme3.scene.shape.Sphere;
|
import com.jme3.scene.shape.Sphere;
|
||||||
|
import com.jme3.system.AppSettings;
|
||||||
import com.jme3.util.BufferUtils;
|
import com.jme3.util.BufferUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -37,6 +38,9 @@ public class TestGeometryShader extends SimpleApplication {
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
TestGeometryShader app = new TestGeometryShader();
|
TestGeometryShader app = new TestGeometryShader();
|
||||||
|
AppSettings settings = new AppSettings(true);
|
||||||
|
settings.setRenderer(AppSettings.LWJGL_OPENGL33);
|
||||||
|
app.setSettings(settings);
|
||||||
app.start();
|
app.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import com.jme3.scene.Geometry;
|
|||||||
import com.jme3.scene.Mesh;
|
import com.jme3.scene.Mesh;
|
||||||
import com.jme3.scene.VertexBuffer;
|
import com.jme3.scene.VertexBuffer;
|
||||||
import com.jme3.scene.shape.Quad;
|
import com.jme3.scene.shape.Quad;
|
||||||
|
import com.jme3.system.AppSettings;
|
||||||
import com.jme3.util.BufferUtils;
|
import com.jme3.util.BufferUtils;
|
||||||
|
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
@ -63,6 +64,10 @@ public class TestTessellationShader extends SimpleApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
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…
x
Reference in New Issue
Block a user