Fix one more part of the event loop that wasn't using switch
Fix GLDebug preprocessor hell