Make error message when creating glfw window fails a little more useful

This commit is contained in:
Kovid Goyal 2018-07-20 09:36:42 +05:30
parent bf37e3f77f
commit e7cc654bb4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -420,7 +420,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args) {
#endif
GLFWwindow *temp_window = glfwCreateWindow(640, 480, "temp", NULL, common_context);
if (temp_window == NULL) { fatal("Failed to create GLFW temp window!"); }
if (temp_window == NULL) { fatal("Failed to create GLFW temp window! This usually happens because of old/broken OpenGL drivers. kitty requires working OpenGL 3.3 drivers."); }
double dpi_x, dpi_y;
get_window_dpi(temp_window, &dpi_x, &dpi_y);