From f7e84df33278eacdfd17d97daac4352ea3a6055c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 31 Dec 2017 08:36:50 +0530 Subject: [PATCH] Add an explicit OpenGL version test Apparently there are some pre 3.3 drivers that include the texture_storage extension. Fixes #258 --- kitty/gl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kitty/gl.h b/kitty/gl.h index 1b137962c..116339163 100644 --- a/kitty/gl.h +++ b/kitty/gl.h @@ -59,6 +59,9 @@ gl_init() { ARB_TEST(texture_storage); #undef ARB_TEST glad_loaded = true; + if (GLVersion.major < 3 || (GLVersion.major == 3 && GLVersion.minor < 3)) { + fatal("OpenGL version is %d.%d, version >= 3.3 required for kitty", GLVersion.major, GLVersion.minor); + } } }