summaryrefslogtreecommitdiff
path: root/src/glx/x11/glxclient.h
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-03-18 15:02:57 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-03-18 15:02:57 +0800
commitae2c31ed669abab66a8c4b68d8d746e94b9ebf28 (patch)
treef0ae9ec54298c5a63053193a7e463d087de692b9 /src/glx/x11/glxclient.h
parent5a0314b431ab147c6156c3011f4cb54161ba4b25 (diff)
glx: Add isDirect back to __GLXcontextRec. It is needed
to check whether oldGC is used for direct rendering in function MakeContextCurrent. However it is possible oldGC->driContext is already freed. fix bug #14926.
Diffstat (limited to 'src/glx/x11/glxclient.h')
-rw-r--r--src/glx/x11/glxclient.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glx/x11/glxclient.h b/src/glx/x11/glxclient.h
index 730caf7302..ea90282b08 100644
--- a/src/glx/x11/glxclient.h
+++ b/src/glx/x11/glxclient.h
@@ -310,6 +310,11 @@ struct __GLXcontextRec {
GLenum error;
/**
+ * Whether this context does direct rendering.
+ */
+ Bool isDirect;
+
+ /**
* \c dpy of current display for this context. Will be \c NULL if not
* current to any display, or if this is the "dummy context".
*/