Revert "macOS: Fix v-sync to monitor refresh rate no longer working under Mojave."

This reverts commit 104e213934.

Fixes #1393
This commit is contained in:
Kovid Goyal
2019-02-19 14:43:36 +05:30
parent 8ebc9553c3
commit 702613915b
3 changed files with 4 additions and 59 deletions

7
glfw/nsgl_context.h vendored
View File

@@ -27,8 +27,6 @@
#define _GLFW_PLATFORM_CONTEXT_STATE _GLFWcontextNSGL nsgl
#define _GLFW_PLATFORM_LIBRARY_CONTEXT_STATE _GLFWlibraryNSGL nsgl
#import <CoreVideo/CoreVideo.h>
#include <stdatomic.h>
// NSGL-specific per-context data
//
@@ -36,10 +34,6 @@ typedef struct _GLFWcontextNSGL
{
id pixelFormat;
id object;
CVDisplayLinkRef displayLink;
atomic_int swapInterval;
int swapIntervalsPassed;
id swapIntervalCond;
} _GLFWcontextNSGL;
@@ -59,3 +53,4 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
const _GLFWctxconfig* ctxconfig,
const _GLFWfbconfig* fbconfig);
void _glfwDestroyContextNSGL(_GLFWwindow* window);