From 03f0ee90e8edc9a17a11213d07f4d6f2baf7b878 Mon Sep 17 00:00:00 2001 From: David Brackeen Date: Sat, 3 Aug 2024 17:08:16 -0700 Subject: [PATCH] Android: Add default to switch and format code --- src/glfm_android.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/glfm_android.c b/src/glfm_android.c index 00edf96..fb573ee 100644 --- a/src/glfm_android.c +++ b/src/glfm_android.c @@ -312,16 +312,16 @@ static void glfm__eglSurfaceInit(GLFMPlatformData *platformData) { platformData->window, NULL); switch (platformData->display->swapBehavior) { - case GLFMSwapBehaviorPlatformDefault: - // Platform default, do nothing. - break; - case GLFMSwapBehaviorBufferPreserved: - eglSurfaceAttrib(platformData->eglDisplay, platformData->eglSurface, EGL_SWAP_BEHAVIOR, - EGL_BUFFER_PRESERVED); - break; - case GLFMSwapBehaviorBufferDestroyed: - eglSurfaceAttrib(platformData->eglDisplay, platformData->eglSurface, EGL_SWAP_BEHAVIOR, - EGL_BUFFER_DESTROYED); + case GLFMSwapBehaviorPlatformDefault: default: + // Platform default, do nothing. + break; + case GLFMSwapBehaviorBufferPreserved: + eglSurfaceAttrib(platformData->eglDisplay, platformData->eglSurface, + EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED); + break; + case GLFMSwapBehaviorBufferDestroyed: + eglSurfaceAttrib(platformData->eglDisplay, platformData->eglSurface, + EGL_SWAP_BEHAVIOR, EGL_BUFFER_DESTROYED); } } }