Skip to content
Snippets Groups Projects
Commit c593d843 authored by Daniel Stone's avatar Daniel Stone Committed by Adam Jackson
Browse files

dri3: Don't call vfuncs on old DRI3 screens


Only call the get_supported_modifiers vfunc if the DRI3 screen struct is
sufficiently new.

Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent 54ac0971
No related branches found
No related tags found
Loading
......@@ -171,7 +171,7 @@ cache_formats_and_modifiers(ScreenPtr screen)
if (!info)
return BadImplementation;
if (!info->get_formats || !info->get_modifiers) {
if (info->version < 2 || !info->get_formats || !info->get_modifiers) {
ds->formats = NULL;
ds->num_formats = 0;
ds->formats_cached = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment