summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxclient.h
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2008-03-08 21:02:23 -0500
committerKristian Høgsberg <[email protected]>2008-03-08 21:02:23 -0500
commit20b9230ce1b96ca246850a8088caeffc3f391a0c (patch)
tree9259704d09a62cffedcd3bb8583f8b8325817f4a /src/glx/x11/glxclient.h
parent92d2a78f8d2d56cfadb4cb5323adec32fe73e353 (diff)
Move DRI drawable creation into dri_glx.c.
Diffstat (limited to 'src/glx/x11/glxclient.h')
-rw-r--r--src/glx/x11/glxclient.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/glx/x11/glxclient.h b/src/glx/x11/glxclient.h
index b8ba4967387..d99918a185e 100644
--- a/src/glx/x11/glxclient.h
+++ b/src/glx/x11/glxclient.h
@@ -94,6 +94,7 @@ typedef struct _glapi_table __GLapi;
*/
typedef struct __GLXDRIdisplayRec __GLXDRIdisplay;
typedef struct __GLXDRIscreenRec __GLXDRIscreen;
+typedef struct __GLXDRIdrawableRec __GLXDRIdrawable;
struct __GLXDRIdisplayRec {
/**
@@ -112,6 +113,16 @@ struct __GLXDRIscreenRec {
void (*createContext)(__GLXscreenConfigs *psc,
const __GLcontextModes *mode,
GLXContext gc, GLXContext shareList, int renderType);
+
+ __GLXDRIdrawable *(*createDrawable)(__GLXscreenConfigs *psc,
+ GLXDrawable drawable,
+ GLXContext gc);
+};
+
+struct __GLXDRIdrawableRec {
+ XID drawable;
+ __GLXscreenConfigs *psc;
+ __DRIdrawable driDrawable;
};
/*
@@ -541,17 +552,6 @@ struct __GLXdisplayPrivateRec {
#endif
};
-#ifdef GLX_DIRECT_RENDERING
-
-struct __GLXdrawableRec {
- XID drawable;
- __GLXscreenConfigs *psc;
- __DRIdrawable driDrawable;
-};
-
-#endif
-
-
void __glXFreeContext(__GLXcontext*);