diff options
author | Rob Clark <rob@ti.com> | 2012-10-06 07:16:30 -0500 |
---|---|---|
committer | Rob Clark <rob@ti.com> | 2012-10-06 07:16:30 -0500 |
commit | c82a820fcdb9f19abec40a326b5554cac61eaa3d (patch) | |
tree | ece1ef9b17f85a67ce6344072861e069f668c7cf | |
parent | ba7a1993ad71133cca6e0087df24e86327f8a4f1 (diff) |
fix ScreenInit -> CloseScreen -> ScreenInit
If the screen gets closed and re-init'd, we'd hit a null ptr for
pOMAP->scanout, because scanout size was not re-initialized, causing
the second drmmode_reallocate_scanout() to be a no-op.
Signed-off-by: Rob Clark <rob@ti.com>
-rw-r--r-- | src/omap_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/omap_driver.c b/src/omap_driver.c index be583f9..1fc188d 100644 --- a/src/omap_driver.c +++ b/src/omap_driver.c @@ -228,6 +228,7 @@ OMAPUnmapMem(ScrnInfoPtr pScrn) drmmode_remove_fb(pScrn); omap_bo_del(pOMAP->scanout); pOMAP->scanout = NULL; + pOMAP->scanout_w = pOMAP->scanout_h = 0; return TRUE; } |