fix: assign present_mode to surface config instead of no-op read #676

Merged
SakulFlee merged 1 commit from fix/vsync-present-mode into main 2026-07-05 04:00:48 +02:00
Collaborator

Fixes #668

The make_surface_configuration method computed present_mode from the vsync parameter but the value was never assigned — it was a no-op expression statement. This meant VSync settings had no effect; the surface always used whatever get_default_config returned.

Fix: default_config.present_mode = present_mode;

Fixes #668 The `make_surface_configuration` method computed `present_mode` from the `vsync` parameter but the value was never assigned — it was a no-op expression statement. This meant VSync settings had no effect; the surface always used whatever `get_default_config` returned. **Fix:** `default_config.present_mode = present_mode;`
fix: assign present_mode to surface config instead of no-op read
Some checks failed
ci/woodpecker/pr/test Pipeline was canceled
ci/woodpecker/push/test Pipeline was canceled
7dfc21b85b
The make_surface_configuration computed present_mode from the vsync
parameter but never assigned it to the SurfaceConfiguration struct,
leaving the line as a no-op expression statement. VSync was silently
ignored and the default present mode from get_default_config was used.

Fixes #668
SakulFlee approved these changes 2026-07-05 04:00:41 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SakulFlee/Orbital!676
No description provided.