glx: pass screen into the convert function
when robustness is enabled, this is required. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ea74e381ae
commit
d1cae6bb80
|
@ -393,7 +393,8 @@ __glXDRIscreenDestroy(__GLXscreen * baseScreen)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
|
dri2_convert_glx_attribs(__GLXDRIscreen *screen, unsigned num_attribs,
|
||||||
|
const uint32_t *attribs,
|
||||||
unsigned *major_ver, unsigned *minor_ver,
|
unsigned *major_ver, unsigned *minor_ver,
|
||||||
uint32_t *flags, int *api, int *reset, unsigned *error)
|
uint32_t *flags, int *api, int *reset, unsigned *error)
|
||||||
{
|
{
|
||||||
|
@ -516,7 +517,7 @@ create_driver_context(__GLXDRIcontext * context,
|
||||||
int api;
|
int api;
|
||||||
|
|
||||||
if (num_attribs != 0) {
|
if (num_attribs != 0) {
|
||||||
if (!dri2_convert_glx_attribs(num_attribs, attribs,
|
if (!dri2_convert_glx_attribs(screen, num_attribs, attribs,
|
||||||
&major_ver, &minor_ver,
|
&major_ver, &minor_ver,
|
||||||
&flags, &api, &reset,
|
&flags, &api, &reset,
|
||||||
(unsigned *) error))
|
(unsigned *) error))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user