From 6c533ea2d1953152f7d95d6c984e0d287edb46c2 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Tue, 16 Oct 2007 16:07:47 -0400 Subject: Handle fbconfigs and glx visuals separately. The old implementation fetches fbconfigs or glx visuals once and assumes the list describes both fbconfigs and glx visuals. This patch splits it up and fetches visuals and fbconfigs in two steps and keep the two lists separate. A server could have no glx visuals or no glx fbconfigs and the old code wouldn't know the difference. --- src/glx/x11/glxclient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glx/x11/glxclient.h') diff --git a/src/glx/x11/glxclient.h b/src/glx/x11/glxclient.h index 0709f3ef26..b464e505fc 100644 --- a/src/glx/x11/glxclient.h +++ b/src/glx/x11/glxclient.h @@ -500,9 +500,9 @@ struct __GLXscreenConfigsRec { #endif /** - * Linked list of configurations for this screen. + * Linked list of glx visuals and fbconfigs for this screen. */ - __GLcontextModes *configs; + __GLcontextModes *visuals, *configs; /** * Per-screen dynamic GLX extension tracking. The \c direct_support -- cgit v1.2.3