From fb6f655e780131c14146e32f12bd557114da380e Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 8 Mar 2023 12:49:31 +0100 Subject: 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 --- src/demos/glinfo.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include "glut_wrap.h" +#ifndef GL_SHADING_LANGUAGE_VERSION +#define GL_SHADING_LANGUAGE_VERSION 0x8B8C +#endif int main( int argc, char *argv[] ) { -- cgit v1.2.1