X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Fsamples%2Fblendeq.c;h=037d06fa5285f88dc4ba49fe63f2442b81be5e6e;hb=e6a7ee7fbb7a058bf3c7de965197f19a9bcede8e;hp=d5143ecdf5c7491f1bac58986afa0a12fc5e6336;hpb=a7d9fde24cb8ecc59b0a6fc610135d851806295b;p=mesa.git diff --git a/progs/samples/blendeq.c b/progs/samples/blendeq.c index d5143ecdf5c..037d06fa528 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; @@ -103,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; @@ -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);