[Mesa-dev] [PATCH 3/5] glx: add missing null check in SendMakeCurrentRequest
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Fri Feb 14 05:23:57 PST 2014
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
src/glx/indirect_glx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c
index 28b8cd0..306bf5b 100644
--- a/src/glx/indirect_glx.c
+++ b/src/glx/indirect_glx.c
@@ -84,7 +84,7 @@ SendMakeCurrentRequest(Display * dpy, CARD8 opcode,
* not the SGI extension.
*/
- if ((priv->majorVersion > 1) || (priv->minorVersion >= 3)) {
+ if (priv && ((priv->majorVersion > 1) || (priv->minorVersion >= 3))) {
xGLXMakeContextCurrentReq *req;
GetReq(GLXMakeContextCurrent, req);
--
1.8.1.2
More information about the mesa-dev
mailing list