summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-08 12:49:31 +0100
committerErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-13 08:39:26 +0100
commitfb6f655e780131c14146e32f12bd557114da380e (patch)
tree959e2ba9c0a743fe15243e88bec7f2ef7784e00e
parentded2627d56addc72a6fd786206066c4ebfd04d08 (diff)
downloadmesa-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.c3
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[] )
{