From 2e61d136c27b9c740190643668f1e3509ce609dc Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sat, 24 Jan 2009 16:39:49 +0000 Subject: progs: Port most of the demos to glew. A couple of test weren't ported due to glew breakage -- it undefines GLAPIENTRY. --- progs/demos/shadowtex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'progs/demos/shadowtex.c') diff --git a/progs/demos/shadowtex.c b/progs/demos/shadowtex.c index 4787f0f29d..f10a01ec26 100644 --- a/progs/demos/shadowtex.c +++ b/progs/demos/shadowtex.c @@ -31,12 +31,12 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#define GL_GLEXT_PROTOTYPES #include #include #include #include #include +#include #include #include "showbuffer.h" @@ -1025,6 +1025,7 @@ main(int argc, char *argv[]) glutInitWindowSize(WindowWidth, WindowHeight); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_STENCIL); glutCreateWindow(argv[0]); + glewInit(); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutSpecialFunc(SpecialKey); -- cgit v1.2.3