diff --git a/src/tests/DawnTest.cpp b/src/tests/DawnTest.cpp index 4827d8b96f..9e2cef3558 100644 --- a/src/tests/DawnTest.cpp +++ b/src/tests/DawnTest.cpp @@ -362,6 +362,7 @@ std::unique_ptr DawnTestEnvironment::CreateInstanceAndDis glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 4); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GLFW_TRUE); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); + glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); mOpenGLWindow = glfwCreateWindow(400, 400, "Dawn OpenGL test window", nullptr, nullptr); @@ -375,6 +376,7 @@ std::unique_ptr DawnTestEnvironment::CreateInstanceAndDis glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API); + glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE); mOpenGLESWindow = glfwCreateWindow(400, 400, "Dawn OpenGLES test window", nullptr, nullptr); @@ -382,6 +384,7 @@ std::unique_ptr DawnTestEnvironment::CreateInstanceAndDis dawn_native::opengl::AdapterDiscoveryOptionsES adapterOptionsES; adapterOptionsES.getProc = adapterOptions.getProc; instance->DiscoverAdapters(&adapterOptionsES); + glfwWindowHint(GLFW_VISIBLE, GLFW_TRUE); #endif // DAWN_ENABLE_BACKEND_OPENGL return instance;