From 54e79a6901c7e9455c724684dce9616be3226ed0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Feb 2017 15:27:41 +0530 Subject: [PATCH] Add a test for ARB_texture_buffer_object_rgb32 There are apparently some drivers on linux that are missing it, see #54 --- kitty/gl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kitty/gl.h b/kitty/gl.h index 34f8d1fd9..40c20d4f3 100644 --- a/kitty/gl.h +++ b/kitty/gl.h @@ -145,6 +145,10 @@ _glewInit(PyObject UNUSED *self) { PyErr_SetString(PyExc_RuntimeError, "OpenGL is missing the required ARB_texture_storage extension"); return NULL; } + if(!GLEW_ARB_texture_buffer_object_rgb32) { + PyErr_SetString(PyExc_RuntimeError, "OpenGL is missing the required ARB_texture_buffer_object_rgb32 extension"); + return NULL; + } #endif Py_RETURN_NONE; }