mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Add an explicit OpenGL version test
Apparently there are some pre 3.3 drivers that include the texture_storage extension. Fixes #258
This commit is contained in:
parent
bd654d22f4
commit
f7e84df332
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue