X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Fxdemos%2Fglxgears_fbconfig.c;h=2dac00b75d1010d3075cf241e66ab3ebfaa0a7b2;hb=3673189326e348eb91e354017703fdfd9d6d8184;hp=cadcaeccf8366df641b21d3245bb400884f32780;hpb=29c909f81ceae4a0356718d6be0a14562c98c019;p=mesa.git diff --git a/progs/xdemos/glxgears_fbconfig.c b/progs/xdemos/glxgears_fbconfig.c index cadcaeccf83..2dac00b75d1 100644 --- a/progs/xdemos/glxgears_fbconfig.c +++ b/progs/xdemos/glxgears_fbconfig.c @@ -360,19 +360,19 @@ init_fbconfig_functions(Display *dpy, int scrnum) if ( glx_1_3_supported ) { choose_fbconfig = (PFNGLXCHOOSEFBCONFIGSGIXPROC) glXGetProcAddressARB( - (GLbyte *) "glXChooseFBConfig"); + (GLubyte *) "glXChooseFBConfig"); get_visual_from_fbconfig = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) glXGetProcAddressARB( - (GLbyte *) "glXGetVisualFromFBConfig"); + (GLubyte *) "glXGetVisualFromFBConfig"); create_new_context = (PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) glXGetProcAddressARB( - (GLbyte *) "glXCreateNewContext"); + (GLubyte *) "glXCreateNewContext"); } else if ( ext_version_supported ) { choose_fbconfig = (PFNGLXCHOOSEFBCONFIGSGIXPROC) glXGetProcAddressARB( - (GLbyte *) "glXChooseFBConfigSGIX"); + (GLubyte *) "glXChooseFBConfigSGIX"); get_visual_from_fbconfig = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) glXGetProcAddressARB( - (GLbyte *) "glXGetVisualFromFBConfigSGIX"); + (GLubyte *) "glXGetVisualFromFBConfigSGIX"); create_new_context = (PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) glXGetProcAddressARB( - (GLbyte *) "glXCreateContextWithConfigSGIX"); + (GLubyte *) "glXCreateContextWithConfigSGIX"); } else { printf( "This demo requires either GLX 1.3 or %s be supported.\n", @@ -467,7 +467,7 @@ make_window( Display *dpy, const char *name, None, (char **)NULL, 0, &sizehints); } - ctx = (*create_new_context)(dpy, fbconfig[0], GLX_RGBA_BIT, NULL, GL_TRUE); + ctx = (*create_new_context)(dpy, fbconfig[0], GLX_RGBA_TYPE, NULL, GL_TRUE); if (!ctx) { printf("Error: glXCreateNewContext failed\n"); exit(1); @@ -575,7 +575,7 @@ main(int argc, char *argv[]) dpy = XOpenDisplay(dpyName); if (!dpy) { - printf("Error: couldn't open display %s\n", dpyName); + printf("Error: couldn't open display %s\n", XDisplayName(dpyName)); return -1; }