mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Merge branch 'master' into multi-monitor
Conflicts: CMakeLists.txt readme.html src/CMakeLists.txt src/cocoa_platform.h src/win32_platform.h src/x11_platform.h tests/events.c
This commit is contained in:
+2
-2
@@ -434,11 +434,10 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Build array of available RGB channel depths
|
||||
|
||||
rgbs = (int*) malloc(sizeof(int) * visualCount);
|
||||
rgbCount = 0;
|
||||
|
||||
#if defined(_GLFW_GLX)
|
||||
for (i = 0; i < visualCount; i++)
|
||||
{
|
||||
int gl, rgba, rgb, r, g, b;
|
||||
@@ -473,6 +472,7 @@ GLFWvidmode* _glfwPlatformGetVideoModes(_GLFWmonitor* monitor, int* found)
|
||||
}
|
||||
|
||||
XFree(visuals);
|
||||
#endif
|
||||
|
||||
// Build all permutations of channel depths and resolutions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user