@@ -1065,7 +1065,9 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
...
@@ -1065,7 +1065,9 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
GLXFBConfigcur;
GLXFBConfigcur;
intnCfgs=0;
intnCfgs=0;
intret=0;
intret=0;
intfmt_count=0;
intfmt_index=0;
intfmt_index=0;
BOOLres=FALSE;
if(!has_opengl()){
if(!has_opengl()){
ERR("No libGL on this box - disabling OpenGL support !\n");
ERR("No libGL on this box - disabling OpenGL support !\n");
...
@@ -1083,20 +1085,21 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
...
@@ -1083,20 +1085,21 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
return0;/* unespected error */
return0;/* unespected error */
}
}
/* This function always reports the total number of supported pixel formats.
/* Look for the iPixelFormat in our list of supported formats. If it is supported we get the index in the FBConfig table and the number of supported formats back */
* At the moment we only support the pixel format corresponding to the main