ecore_drm: Making _ecore_drm_init_count not to go below zero in _ecore_drm_shutdown.
authorSrivardhan Hebbar <sri.hebbar@samsung.com>
Thu, 23 Oct 2014 13:04:29 +0000 (09:04 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 23 Oct 2014 13:04:55 +0000 (09:04 -0400)
commit7b1f4c09b94692d476126798278d539d3dfea125
treef24a1a87e2409dec2cf72ae68a817bb333b3c605
parent005cdf359d185c620944c70716d629062a4f6371
ecore_drm: Making _ecore_drm_init_count not to go below zero in _ecore_drm_shutdown.

Summary:
If _ecore_drm_init_count goes below zero, then when next time ecore_drm_init is called, it won't do the initializations which it is supposed to do. So preventing this scenario by not making it go
below zero in _ecore_wl_shutdown function.

@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1573
src/lib/ecore_drm/ecore_drm.c