diff --git a/kitty/gl.c b/kitty/gl.c index 8245b4f9e..3193bf5cd 100644 --- a/kitty/gl.c +++ b/kitty/gl.c @@ -71,7 +71,7 @@ gl_init(void) { int gl_minor = GLAD_VERSION_MINOR(global_state.gl_version); if (global_state.debug_rendering) printf("[%.3f] GL version string: %s\n", monotonic_t_to_s_double(monotonic()), gl_version_string()); if (gl_major < OPENGL_REQUIRED_VERSION_MAJOR || (gl_major == OPENGL_REQUIRED_VERSION_MAJOR && gl_minor < OPENGL_REQUIRED_VERSION_MINOR)) { - fatal("OpenGL version is %d.%d, version >= 3.3 required for kitty", gl_major, gl_minor); + fatal("OpenGL version is %d.%d, version >= %d.%d required for kitty", gl_major, gl_minor, OPENGL_REQUIRED_VERSION_MAJOR, OPENGL_REQUIRED_VERSION_MINOR); } } } diff --git a/kitty/glfw.c b/kitty/glfw.c index 3870ad22f..96bd5ab04 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -1194,7 +1194,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) { } } else { temp_window = glfwCreateWindow(640, 480, "temp", NULL, common_context); - 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."); } + if (temp_window == NULL) { fatal("Failed to create GLFW temp window! This usually happens because of old/broken OpenGL drivers. kitty requires working OpenGL %d.%d drivers.", OPENGL_REQUIRED_VERSION_MAJOR, OPENGL_REQUIRED_VERSION_MINOR); } get_window_content_scale(temp_window, &xscale, &yscale, &xdpi, &ydpi); } FONTS_DATA_HANDLE fonts_data = load_fonts_data(OPT(font_size), xdpi, ydpi);