Removed paranoid error check.

This commit is contained in:
Camilla Berglund
2012-09-12 23:03:07 +02:00
parent 4f8f6c7d89
commit b4493dd3bc
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -255,13 +255,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
monitor.cb = sizeof(DISPLAY_DEVICE);
EnumDisplayDevices(adapter.DeviceName, 0, &monitor, 0);
dc = CreateDC(L"DISPLAY", monitor.DeviceString, NULL, NULL);
if (!dc)
{
// TODO: wat
return NULL;
}
monitors[found] = _glfwCreateMonitor(name,
GetDeviceCaps(dc, HORZSIZE),