Cleanup: quiet unused warning & correct typo

This commit is contained in:
Campbell Barton
2025-08-15 18:55:52 +10:00
parent ea633b930f
commit 3be9f89ad3
2 changed files with 3 additions and 1 deletions

View File

@@ -113,6 +113,8 @@ class GHOST_SystemHeadless : public GHOST_System {
{
const GHOST_ContextParams context_params_offscreen =
GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN(gpuSettings);
/* This may not be used depending on the build configuration. */
(void)context_params_offscreen;
switch (gpuSettings.context_type) {
#ifdef WITH_VULKAN_BACKEND

View File

@@ -2090,7 +2090,7 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system,
if (type == GHOST_kDrawingContextTypeOpenGL) {
/* NOTE(@ideasman42): Set the swap interval to 0 (disable VSync) to prevent blocking.
* This was reported for SDL in 2021 so it may be good to revisit this decision
* at some point since forcing the VSync setting seems a heavy-handed,
* at some point since forcing the VSync setting seems heavy-handed,
* especially if the issue gets resolved up-stream.
*
* For reference: https://github.com/libsdl-org/SDL/issues/4335