From 7222d1fa26c0a8bf48c88274ea520607915afa25 Mon Sep 17 00:00:00 2001 From: bjorn Date: Thu, 30 Aug 2018 21:43:20 -0700 Subject: [PATCH] Use same window hints for webgl and desktop; It doesn't seem like this causes any problems anymore. --- src/graphics/graphics.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index 9d322f94..48ba84db 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -53,7 +53,6 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha lovrAssert(!state.window, "Window is already created"); if ((state.window = glfwGetCurrentContext()) == NULL) { -#ifndef EMSCRIPTEN glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); @@ -61,13 +60,6 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha glfwWindowHint(GLFW_SAMPLES, msaa); glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE); glfwWindowHint(GLFW_SRGB_CAPABLE, state.gammaCorrect); -#else - glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); - glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); - glfwWindowHint(GLFW_SAMPLES, msaa); - glfwWindowHint(GLFW_SRGB_CAPABLE, state.gammaCorrect); -#endif GLFWmonitor* monitor = glfwGetPrimaryMonitor(); const GLFWvidmode* mode = glfwGetVideoMode(monitor);