From 52233f27bb99d21a085117990936d9c355e4ce08 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 10 Feb 2009 20:27:49 +0000 Subject: progs: Build samples dir with scons and glew. --- progs/samples/blendeq.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'progs/samples/blendeq.c') diff --git a/progs/samples/blendeq.c b/progs/samples/blendeq.c index d5143ecdf5..cd0474c5ce 100644 --- a/progs/samples/blendeq.c +++ b/progs/samples/blendeq.c @@ -11,10 +11,7 @@ #include #include #include -#ifdef _WIN32 -#include -#endif -#define GL_GLEXT_PROTOTYPES +#include #include GLenum doubleBuffer; @@ -274,6 +271,8 @@ int main(int argc, char **argv) exit(1); } + glewInit(); + /* Make sure blend_logic_op extension is there. */ s = (char *) glGetString(GL_EXTENSIONS); version = (char*) glGetString(GL_VERSION); -- cgit v1.2.3 From 0d0028e6df3542272ce833fec2e7af99d762fe8f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 16 Apr 2009 09:25:52 -0600 Subject: demos: use larger buffer for snprintf() call, see bug 21220 --- progs/samples/blendeq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'progs/samples/blendeq.c') diff --git a/progs/samples/blendeq.c b/progs/samples/blendeq.c index cd0474c5ce..037d06fa52 100644 --- a/progs/samples/blendeq.c +++ b/progs/samples/blendeq.c @@ -100,7 +100,7 @@ static void PrintColorStrings( void ) { GLubyte ubbuf[3]; int i, xleft, xright; - char colorString[18]; + char colorString[100]; xleft = 5 + windW/4; xright = 5 + windW/2; -- cgit v1.2.3