mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 01:55:09 +00:00
Slightly more readable code; completely equivalent
This commit is contained in:
parent
00bc927d47
commit
0ff9822c38
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user