forked from StarOpenSource/Engine
Make OpenGL compatibility test window invisible
This commit is contained in:
parent
42d0feb574
commit
e695235277
1 changed files with 2 additions and 1 deletions
|
@ -162,12 +162,13 @@ public final class OpenGlSubsystem implements ApiMainClass {
|
|||
@Override
|
||||
public boolean isCompatible() {
|
||||
// Set required version and profile
|
||||
glfwWindowHint(GLFW_VISIBLE, 0);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
|
||||
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
|
||||
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
|
||||
|
||||
// Create test window
|
||||
long window = glfwCreateWindow(0, 0, "sos!engine OpenGL API compatibility test", MemoryUtil.NULL, MemoryUtil.NULL);
|
||||
long window = glfwCreateWindow(0, 0, "sos!engine OpenGL Graphics API compatibility test", MemoryUtil.NULL, MemoryUtil.NULL);
|
||||
boolean failed = window == MemoryUtil.NULL;
|
||||
|
||||
// Destroy window
|
||||
|
|
Loading…
Reference in a new issue