mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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>
This commit is contained in:
committed by
Keith Packard
parent
b51a1bd276
commit
da3eaf6bdb
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user