#ifdef _WIN32 hDisplay = EGL_DEFAULT_DISPLAY; // GetDC(NULL);#else hDisplay = XOpenDisplay(NULL); if (!hDisplay) { printf("Could not open display\n"); exit(-1); }#endif