diff options
author | Dave Airlie <airlied@redhat.com> | 2012-12-17 15:40:17 +1000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-17 10:36:15 -0800 |
commit | da3eaf6bdbd7ce3bebf2c490cbe2448b4c402dba (patch) | |
tree | 317eb2209e8401ec6516113c8c59576f104b0159 | |
parent | b51a1bd2766e7dc975ca8f1cacc3f8bd0e1a68a3 (diff) |
glx/dri2: initialise api to avoid indirect rendering failing randomly
Running glxinfo under indirect rendering would randomly fail against the
intel driver, as it would create a context with no attribs, and then the
api value would be passed to the driver uninitialised.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | glx/glxdri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index bce1bfa4b..b26e501dc 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -514,7 +514,7 @@ create_driver_context(__GLXDRIcontext * context, unsigned minor_ver; uint32_t flags; int reset; - int api; + int api = __DRI_API_OPENGL; if (num_attribs != 0) { if (!dri2_convert_glx_attribs(screen, num_attribs, attribs, |