Make OpenGL compatibility test window invisible

This commit is contained in:
JeremyStar™ 2024-07-22 13:40:21 +02:00
parent 42d0feb574
commit e695235277
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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