mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibGL: Define GL_ES_VERSION_2_0
GLES 2.0 is a subset of OpenGL, so we allow applications to compile
against LibGL as if it fully supports GLES 2.0.
Additionally, we set the definitions to an integer value of `1` so
applications that check for availability like this...
int main() { return GL_ES_VERSION_2_0; }
...can actually compile. At least ScummVM uses this, and Mesa defines
their constants in the same way:
44b9e11ddb/include/GL/gl.h (L105)
This commit is contained in:
parent
23257cac52
commit
6d4a5a40a0
1 changed files with 7 additions and 6 deletions
|
@ -15,12 +15,13 @@ extern "C" {
|
|||
# define GLAPI extern
|
||||
#endif
|
||||
|
||||
#define GL_VERSION_1_0
|
||||
#define GL_VERSION_1_1
|
||||
#define GL_VERSION_1_2
|
||||
#define GL_VERSION_1_3
|
||||
#define GL_VERSION_1_4
|
||||
#define GL_VERSION_1_5
|
||||
#define GL_VERSION_1_0 1
|
||||
#define GL_VERSION_1_1 1
|
||||
#define GL_VERSION_1_2 1
|
||||
#define GL_VERSION_1_3 1
|
||||
#define GL_VERSION_1_4 1
|
||||
#define GL_VERSION_1_5 1
|
||||
#define GL_ES_VERSION_2_0 1
|
||||
|
||||
// OpenGL related `defines`
|
||||
#define GL_TRUE 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue