mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dri3: annotate the dri3_screen_info data as const
dri3_screen_info is the user provide dispatch. Something that we do
not and should not change.
When using the _ptr typecast + const the compiler barfs at us
(rightfully so), so use the _rec one.
[Silence a new const mismatch warning too - ajax]
Fixes: 5631382988 ("dri3: Add DRI3 extension")
Cc: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
committed by
Adam Jackson
parent
c67f2eac56
commit
66b632bb06
@@ -45,7 +45,7 @@ dri3_close_screen(ScreenPtr screen)
|
||||
}
|
||||
|
||||
Bool
|
||||
dri3_screen_init(ScreenPtr screen, dri3_screen_info_ptr info)
|
||||
dri3_screen_init(ScreenPtr screen, const dri3_screen_info_rec *info)
|
||||
{
|
||||
dri3_screen_generation = serverGeneration;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user