From 0ff9822c38e2023543efae005cf222b7f38833b1 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Wed, 5 Jun 2024 02:51:46 +0100 Subject: [PATCH] Slightly more readable code; completely equivalent --- src/nsgl_context.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nsgl_context.m b/src/nsgl_context.m index 90706568..2cdc4ae2 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -344,8 +344,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window, // Re-try with Software Renderer DELETE_ATTRIB(NSOpenGLPFAAccelerated); DELETE_TERMINATING_NULL; // Unterminate. - ADD_ATTRIB(NSOpenGLPFARendererID); - ADD_ATTRIB(kCGLRendererGenericFloatID); + SET_ATTRIB(NSOpenGLPFARendererID, kCGLRendererGenericFloatID); ADD_ATTRIB(0); // Re-terminate. window->context.nsgl.pixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs];