mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 14:24:35 +00:00
Added comment on headless Macs.
This commit is contained in:
parent
6eec7970c1
commit
beb7e5909f
@ -52,6 +52,7 @@ static const char* getDisplayName(CGDirectDisplayID displayID)
|
|||||||
if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"),
|
if (!names || !CFDictionaryGetValueIfPresent(names, CFSTR("en_US"),
|
||||||
(const void**) &value))
|
(const void**) &value))
|
||||||
{
|
{
|
||||||
|
// This may happen if a desktop Mac is running headless
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to retrieve display name");
|
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to retrieve display name");
|
||||||
|
|
||||||
CFRelease(info);
|
CFRelease(info);
|
||||||
|
Loading…
Reference in New Issue
Block a user