clear GAL_HWACCEL flag if check_blit retruns non-zero

This commit is contained in:
Vincent Wei
2019-07-11 16:35:42 +08:00
parent 3494e3d496
commit 93101e6eed
+4 -1
View File
@@ -1094,8 +1094,11 @@ static int DRI_CheckHWBlit_Accl(_THIS, GAL_Surface *src, GAL_Surface *dst)
vdata->driver_ops->check_blit(vdata->driver, src_buf, dst_buf) == 0) {
src->map->hw_blit = DRI_HWBlit;
}
else
else {
src->map->hw_blit = NULL;
src->flags &= ~GAL_HWACCEL;
accelerated = 0;
}
return accelerated;
}