#include "glxextensions.h"
#include "util/debug.h"
+#include "dri_common.h"
#include <X11/Xlib-xcb.h>
#include <xcb/xcb.h>
LockDisplay(dpy);
psc->configs = NULL;
- if (atof(priv->serverGLXversion) >= 1.3) {
+ if (priv->majorVersion > 1 ||
+ (priv->majorVersion == 1 && priv->minorVersion >= 3)) {
GetReq(GLXGetFBConfigs, fb_req);
fb_req->reqType = priv->majorOpcode;
fb_req->glxCode = X_GLXGetFBConfigs;
dpyPriv->drawHash = __glxHashCreate();
+ /* Set the logger before the *CreateDisplay functions. */
+ loader_set_logger(dri_message);
+
/*
** Initialize the direct rendering per display data and functions.
** Note: This _must_ be done before calling any other DRI routines