mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 08:18:08 +02:00
Dont request sRGB surfaces on Wayland
Apparently mesa just completely broke it. Besides it being already broken on NVIDIA. Sigh, more of my life wasted on Wayland. See https://github.com/kovidgoyal/kitty/issues/7174#issuecomment-2000033873
This commit is contained in:
@@ -38,10 +38,6 @@ check_for_gl_error(void UNUSED *ret, const char *name, GLADapiproc UNUSED funcpt
|
||||
}
|
||||
}
|
||||
|
||||
static bool is_nvidia = false;
|
||||
|
||||
bool is_nvidia_gpu_driver(void) { return is_nvidia; }
|
||||
|
||||
void
|
||||
gl_init(void) {
|
||||
static bool glad_loaded = false;
|
||||
@@ -64,7 +60,6 @@ gl_init(void) {
|
||||
int gl_major = GLAD_VERSION_MAJOR(gl_version);
|
||||
int gl_minor = GLAD_VERSION_MINOR(gl_version);
|
||||
const char *gvs = (const char*)glGetString(GL_VERSION);
|
||||
if (strstr(gvs, "NVIDIA")) is_nvidia = true;
|
||||
if (global_state.debug_rendering) printf("GL version string: '%s' Detected version: %d.%d\n", gvs, gl_major, gl_minor);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user