*** empty log message ***

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@273 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2004-06-17 17:11:55 +00:00
parent 49a9e02915
commit 31e5ea08fb

View File

@ -589,7 +589,7 @@ VisualInfo (GLContext* ctx)
{ {
/* print out the information for this fbc */ /* print out the information for this fbc */
/* visual id */ /* visual id */
ret = glXGetFBConfigAttrib(ctx->dpy, fbc[i], GLX_VISUAL_ID, &value); ret = glXGetFBConfigAttrib(ctx->dpy, fbc[i], GLX_FBCONFIG_ID, &value);
if (ret != Success) if (ret != Success)
{ {
fprintf(file, "| ? |"); fprintf(file, "| ? |");
@ -674,14 +674,32 @@ VisualInfo (GLContext* ctx)
} }
else else
{ {
if (value & GLX_RGBA_FLOAT_ATI_BIT) if (GLXEW_NV_float_buffer)
fprintf(file, " f "); {
else if (value & GLX_RGBA_BIT) int ret2, value2;
fprintf(file, " i "); ret2 = glXGetFBConfigAttrib(ctx->dpy, fbc[i], GLX_FLOAT_COMPONENTS_NV, &value2);
else if (value & GLX_COLOR_INDEX_BIT) if (Success == ret2 && GL_TRUE == value2)
fprintf(file, " c "); {
fprintf(file, " f ");
}
else if (value & GLX_RGBA_BIT)
fprintf(file, " i ");
else if (value & GLX_COLOR_INDEX_BIT)
fprintf(file, " c ");
else
fprintf(file, " ? ");
}
else else
fprintf(file, " ? "); {
if (value & GLX_RGBA_FLOAT_ATI_BIT)
fprintf(file, " f ");
else if (value & GLX_RGBA_BIT)
fprintf(file, " i ");
else if (value & GLX_COLOR_INDEX_BIT)
fprintf(file, " c ");
else
fprintf(file, " ? ");
}
} }
/* double buffer */ /* double buffer */
ret = glXGetFBConfigAttrib(ctx->dpy, fbc[i], GLX_DOUBLEBUFFER, &value); ret = glXGetFBConfigAttrib(ctx->dpy, fbc[i], GLX_DOUBLEBUFFER, &value);