From ae2c31ed669abab66a8c4b68d8d746e94b9ebf28 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Tue, 18 Mar 2008 15:02:57 +0800 Subject: 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. --- src/glx/x11/glxclient.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glx/x11/glxclient.h') diff --git a/src/glx/x11/glxclient.h b/src/glx/x11/glxclient.h index 730caf73024..ea90282b08f 100644 --- a/src/glx/x11/glxclient.h +++ b/src/glx/x11/glxclient.h @@ -309,6 +309,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". -- cgit v1.2.3