Skip to content

Commit

Permalink
Android: Add default to switch and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
brackeen committed Aug 4, 2024
1 parent 43a3448 commit 03f0ee9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/glfm_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 03f0ee9

Please sign in to comment.