Downgrade OpenGL version requirement to 3.1

There are only a few features required from newer versions, and they
can be achieved via extensions. This significantly improves compatibility.
This commit is contained in:
Hector Martin
2022-12-20 16:22:05 +09:00
parent d8284befd3
commit 84aebae6a8
9 changed files with 5415 additions and 794 deletions

View File

@@ -18,7 +18,8 @@
#include "banned.h"
// Required minimum OpenGL version
#define OPENGL_REQUIRED_VERSION_MAJOR 3
#define OPENGL_REQUIRED_VERSION_MINOR 3
#define OPENGL_REQUIRED_VERSION_MINOR 1
#define GLSL_VERSION 140
#define GLFW_MOD_KITTY (GLFW_MOD_LAST * 2)
#define UNUSED __attribute__ ((unused))
#define PYNOARG PyObject *__a1 UNUSED, PyObject *__a2 UNUSED