diff options
author | Rob Clark | 2012-10-06 07:16:30 -0500 |
---|---|---|
committer | Rob Clark | 2012-10-06 07:16:30 -0500 |
commit | c82a820fcdb9f19abec40a326b5554cac61eaa3d (patch) | |
tree | ece1ef9b17f85a67ce6344072861e069f668c7cf | |
parent | ba7a1993ad71133cca6e0087df24e86327f8a4f1 (diff) | |
download | xf86-video-omap-c82a820fcdb9f19abec40a326b5554cac61eaa3d.tar.gz xf86-video-omap-c82a820fcdb9f19abec40a326b5554cac61eaa3d.tar.xz xf86-video-omap-c82a820fcdb9f19abec40a326b5554cac61eaa3d.zip |
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) | |||
228 | drmmode_remove_fb(pScrn); | 228 | drmmode_remove_fb(pScrn); |
229 | omap_bo_del(pOMAP->scanout); | 229 | omap_bo_del(pOMAP->scanout); |
230 | pOMAP->scanout = NULL; | 230 | pOMAP->scanout = NULL; |
231 | pOMAP->scanout_w = pOMAP->scanout_h = 0; | ||
231 | return TRUE; | 232 | return TRUE; |
232 | } | 233 | } |
233 | 234 | ||