Browse Source

Platform: minor cleanup.

pull/194/merge
Vladimír Vondruš 8 years ago
parent
commit
606811735c
  1. 2
      src/Magnum/Platform/GlfwApplication.cpp
  2. 2
      src/Magnum/Platform/GlfwApplication.h

2
src/Magnum/Platform/GlfwApplication.cpp

@ -123,7 +123,7 @@ bool GlfwApplication::tryCreate(const Configuration& configuration) {
glfwWindowHint(GLFW_FOCUSED, configuration.windowFlags() >= Configuration::WindowFlag::Focused); glfwWindowHint(GLFW_FOCUSED, configuration.windowFlags() >= Configuration::WindowFlag::Focused);
#ifdef GLFW_NO_API #ifdef GLFW_NO_API
/* Disable implicit GL context c/reation */ /* Disable implicit GL context creation */
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NO_API); glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NO_API);
#endif #endif

2
src/Magnum/Platform/GlfwApplication.h

@ -480,7 +480,7 @@ class GlfwApplication {
static GlfwApplication* _instance; static GlfwApplication* _instance;
GLFWwindow* _window{ nullptr }; GLFWwindow* _window{nullptr};
Flags _flags; Flags _flags;
#ifdef MAGNUM_TARGET_GL #ifdef MAGNUM_TARGET_GL
std::unique_ptr<Platform::GLContext> _context; std::unique_ptr<Platform::GLContext> _context;

Loading…
Cancel
Save