Slightly more readable code; completely equivalent

This commit is contained in:
Hin-Tak Leung 2024-06-05 02:51:46 +01:00
parent 00bc927d47
commit 0ff9822c38

View File

@ -344,8 +344,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
// Re-try with Software Renderer // Re-try with Software Renderer
DELETE_ATTRIB(NSOpenGLPFAAccelerated); DELETE_ATTRIB(NSOpenGLPFAAccelerated);
DELETE_TERMINATING_NULL; // Unterminate. DELETE_TERMINATING_NULL; // Unterminate.
ADD_ATTRIB(NSOpenGLPFARendererID); SET_ATTRIB(NSOpenGLPFARendererID, kCGLRendererGenericFloatID);
ADD_ATTRIB(kCGLRendererGenericFloatID);
ADD_ATTRIB(0); // Re-terminate. ADD_ATTRIB(0); // Re-terminate.
window->context.nsgl.pixelFormat = window->context.nsgl.pixelFormat =
[[NSOpenGLPixelFormat alloc] initWithAttributes:attribs]; [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs];