diff options
author | Brian Paul <brianp@vmware.com> | 2011-05-18 16:17:12 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-05-18 16:33:18 -0600 |
commit | b82461f2bf4a7fe0719ca1e8b45060c775cf680c (patch) | |
tree | 845430543a14343e4209d4040d3597b2844d078a /src/glsl | |
parent | 71f9f4901a340674465d2377c6c61bbe2f766e79 (diff) |
bezier: check for GL_ARB_geometry_shader4 extension
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/bezier.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/bezier.c b/src/glsl/bezier.c index b4036e77..0b56bc1c 100644 --- a/src/glsl/bezier.c +++ b/src/glsl/bezier.c @@ -161,6 +161,11 @@ static void init(void) if (!ShadersSupported()) exit(1); + if (!glutExtensionSupported("GL_ARB_geometry_shader4")) { + printf("This demo requires GL_ARB_geometry_shader4\n"); + exit(1); + } + menu_init(); fragShader = glCreateShader(GL_FRAGMENT_SHADER); |