Fix [#23592] WM draw method detection fails for Mesa's software rasterizer.
Reported and patched by Vinay Pawar. The drawing method will be set to Overlap on detection of Mesa software rasterizer.
This commit is contained in:
parent
2492c12170
commit
9a290b39c7
|
@ -710,6 +710,8 @@ static int wm_automatic_draw_method(wmWindow *win)
|
||||||
/* Windows software driver darkens color on each redraw */
|
/* Windows software driver darkens color on each redraw */
|
||||||
else if(GPU_type_matches(GPU_DEVICE_SOFTWARE, GPU_OS_WIN, GPU_DRIVER_SOFTWARE))
|
else if(GPU_type_matches(GPU_DEVICE_SOFTWARE, GPU_OS_WIN, GPU_DRIVER_SOFTWARE))
|
||||||
return USER_DRAW_OVERLAP_FLIP;
|
return USER_DRAW_OVERLAP_FLIP;
|
||||||
|
else if(GPU_type_matches(GPU_DEVICE_SOFTWARE, GPU_OS_UNIX, GPU_DRIVER_SOFTWARE))
|
||||||
|
return USER_DRAW_OVERLAP;
|
||||||
/* drawing lower color depth again degrades colors each time */
|
/* drawing lower color depth again degrades colors each time */
|
||||||
else if(GPU_color_depth() < 24)
|
else if(GPU_color_depth() < 24)
|
||||||
return USER_DRAW_OVERLAP;
|
return USER_DRAW_OVERLAP;
|
||||||
|
|
Loading…
Reference in New Issue