Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6153>
surf->Config->MinSwapInterval,
surf->Config->MaxSwapInterval);
- if (surf->SwapInterval != interval) {
- if (disp->Driver->SwapInterval)
- ret = disp->Driver->SwapInterval(disp, surf, interval);
- else
- ret = EGL_TRUE;
- }
- else {
+ if (surf->SwapInterval != interval && disp->Driver->SwapInterval)
+ ret = disp->Driver->SwapInterval(disp, surf, interval);
+ else
ret = EGL_TRUE;
- }
if (ret)
surf->SwapInterval = interval;