mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 19:50:12 +01:00
added MESA_VERSION() macro, etc (Holger Waechtler)
This commit is contained in:
parent
e8e93e9cc6
commit
0b52018df2
1 changed files with 9 additions and 0 deletions
|
|
@ -33,10 +33,19 @@
|
|||
#define MESA_PATCH 0
|
||||
#define MESA_VERSION_STRING "5.1"
|
||||
|
||||
/* To make version comparison easy */
|
||||
#define MESA_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
||||
#define MESA_VERSION_CODE MESA_VERSION(MESA_MAJOR, MESA_MINOR, MESA_PATCH)
|
||||
|
||||
|
||||
/* OpenGL API version */
|
||||
#define OPENGL_MAJOR 1
|
||||
#define OPENGL_MINOR 4
|
||||
#define OPENGL_VERSION_STRING "1.4"
|
||||
|
||||
/* To make version comparison easy */
|
||||
#define OPENGL_VERSION(a,b) (((a) << 16) + ((b) << 8) + (c))
|
||||
#define OPENGL_VERSION_CODE OPENGL_VERSION(OPENGL_MAJOR, OPENGL_MINOR)
|
||||
|
||||
|
||||
#endif /* VERSION_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue