Fixup a couple of thinkos in glxinfo changes.
authorKristian Høgsberg <krh@redhat.com>
Wed, 17 Oct 2007 14:14:55 +0000 (10:14 -0400)
committerKristian Høgsberg <krh@redhat.com>
Wed, 17 Oct 2007 14:15:10 +0000 (10:15 -0400)
progs/xdemos/glxinfo.c

index a6bfaa2520b8f5dc24d36b365054232889b38ee4..dfad1d391952a2793d020227d60f1e84fde00582 100644 (file)
@@ -682,9 +682,6 @@ get_fbconfig_attribs(Display *dpy, GLXFBConfig fbconfig,
 
    glXGetFBConfigAttrib(dpy, fbconfig, GLX_FBCONFIG_ID, &attribs->id);
 
-   /* FIXME: convert from GL enum to visual class. */
-   glXGetFBConfigAttrib(dpy, fbconfig, GLX_X_VISUAL_TYPE, &attribs->klass);
-
 #if 0
    attribs->depth = vInfo->depth;
    attribs->redMask = vInfo->red_mask;
@@ -1122,10 +1119,10 @@ main(int argc, char *argv[])
          mesa_hack(dpy, scrnum);
          print_screen_info(dpy, scrnum, allowDirect, limits);
          printf("\n");
-#ifdef GLX_VERSION_1_3
          print_visual_info(dpy, scrnum, mode);
-#endif
+#ifdef GLX_VERSION_1_3
          print_fbconfig_info(dpy, scrnum, mode);
+#endif
          if (scrnum + 1 < numScreens)
             printf("\n\n");
       }