#include <GL/glxproto.h>
#include "xm_api.h"
-#include "util/imports.h"
#include "main/errors.h"
#include "util/u_math.h"
#include "util/u_memory.h"
#if !defined(X_GLXCreateContextAttribsARB) && \
defined(X_GLXCreateContextAtrribsARB)
#define X_GLXCreateContextAttribsARB X_GLXCreateContextAtrribsARB
-#endif
+#endif
/* This indicates the client-side GLX API and GLX encoder version. */
#define CLIENT_MAJOR_VERSION 1
return NULL;
}
}
-
+
return vis;
}
/*
* Select an X visual which satisfies the RGBA flag and minimum depth.
- * Input: dpy,
+ * Input: dpy,
* screen - X display and screen number
* min_depth - minimum visual depth
* preferred_class - preferred GLX visual class or DONT_CARE
if (stencil_size > 0)
stencil_size = 8;
- if (accumRedSize > 0 ||
- accumGreenSize > 0 ||
+ if (accumRedSize > 0 ||
+ accumGreenSize > 0 ||
accumBlueSize > 0 ||
accumAlphaSize > 0) {
- accumRedSize =
- accumGreenSize =
+ accumRedSize =
+ accumGreenSize =
accumBlueSize = default_accum_bits();
accumAlphaSize = alpha_flag ? accumRedSize : 0;
if (no_rast && current == ctx)
return True;
-
+
/* Now make current! */
if (XMesaMakeCurrent2(xmctx, drawBuffer, readBuffer)) {
ctx->currentDpy = dpy;
{
if (dpy && config) {
XMesaVisual xmvis = (XMesaVisual) config;
-#if 0
+#if 0
return xmvis->vishandle;
#else
/* create a new vishandle - the cached one may be stale */