mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-06 02:01:50 +08:00
check whether using external driver before calling flush_driver
This commit is contained in:
@@ -2246,7 +2246,7 @@ static void DRM_UpdateRects (_THIS, int numrects, GAL_Rect *rects)
|
||||
{
|
||||
DrmVideoData* vdata = this->hidden;
|
||||
|
||||
if (vdata->driver_ops->flush_driver)
|
||||
if (vdata->driver && vdata->driver_ops->flush_driver)
|
||||
vdata->driver_ops->flush_driver(vdata->driver);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user