mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-12 12:55:59 +00:00
It's okay to quit things more than once.
This commit is contained in:
@@ -69,8 +69,6 @@ static void
|
|||||||
SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
|
SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
|
||||||
{
|
{
|
||||||
int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
|
int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
|
||||||
/* If this assert triggers there is a mismatch between init and quit calls */
|
|
||||||
SDL_assert(SDL_SubsystemRefCount[subsystem_index] > 0);
|
|
||||||
if (SDL_SubsystemRefCount[subsystem_index] > 0) {
|
if (SDL_SubsystemRefCount[subsystem_index] > 0) {
|
||||||
--SDL_SubsystemRefCount[subsystem_index];
|
--SDL_SubsystemRefCount[subsystem_index];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user