diff options
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2023-03-08 12:49:31 +0100 |
---|---|---|
committer | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2023-03-13 08:39:26 +0100 |
commit | fb6f655e780131c14146e32f12bd557114da380e (patch) | |
tree | 959e2ba9c0a743fe15243e88bec7f2ef7784e00e | |
parent | ded2627d56addc72a6fd786206066c4ebfd04d08 (diff) | |
download | mesa-demos-fb6f655e780131c14146e32f12bd557114da380e.tar.gz |
demos/glinfo: make sure GL_SHADING_LANGUAGE_VERSION is defined
This is needed for Windows support here, because the Windows GL/gl.h
header is missing the definition.
Usually it'd be better to use GLAD for modern GL support on Windows,
but this is an extremely simple program, so it doesn't seem worth it.
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
-rw-r--r-- | src/demos/glinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/demos/glinfo.c b/src/demos/glinfo.c index 7dd384f6..62bf5a36 100644 --- a/src/demos/glinfo.c +++ b/src/demos/glinfo.c @@ -10,6 +10,9 @@ #include <stdio.h> #include "glut_wrap.h" +#ifndef GL_SHADING_LANGUAGE_VERSION +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#endif int main( int argc, char *argv[] ) { |