diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-03-04 12:16:29 +0000 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-05-07 14:06:04 -0400 |
commit | d61ae18074e53c2cdfb13cc37693b526160d6ca7 (patch) | |
tree | 92ff1dde653d973f9468a08d780ff485489844d0 /glx | |
parent | 1af15aaf278edcf6f6de94774350e34a80883c24 (diff) |
glx/dri2: Disable AIGLX if indirect GLX is disabled
There is no point in setting up the acceleration for indirect GLX if
indirect GLX is itself disabled.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index bcd57a4a3..c0f29ea31 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -936,6 +936,9 @@ __glXDRIscreenProbe(ScreenPtr pScreen) size_t buffer_size; ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); + if (!enableIndirectGLX) + return NULL; + screen = calloc(1, sizeof *screen); if (screen == NULL) return NULL; |