fix
Some checks failed
Build Dusk / run-tests (push) Failing after 17s
Build Dusk / build-linux (push) Failing after 20s
Build Dusk / build-psp (push) Failing after 20s
Build Dusk / build-gamecube (push) Failing after 19s
Build Dusk / build-wii (push) Failing after 17s

This commit is contained in:
2026-03-23 15:37:53 -05:00
parent b23c4b83ae
commit ebff7af9b5
2 changed files with 2 additions and 1 deletions

View File

@@ -56,7 +56,7 @@ void cameraGetProjectionMatrix(camera_t *camera, mat4 dest) {
glm_mat4_identity(dest);
glm_perspective(
camera->perspective.fov,
(640.0f / 480.0f),
SCREEN.aspect,
camera->nearClip,
camera->farClip,
dest

View File

@@ -56,6 +56,7 @@ errorret_t screenBind() {
// Screen mode backbuffer uses the full display size
SCREEN.width = frameBufferGetWidth(FRAMEBUFFER_BOUND);
SCREEN.height = frameBufferGetHeight(FRAMEBUFFER_BOUND);
SCREEN.aspect = (float_t)SCREEN.width / (float_t)SCREEN.height;
// No needd for a framebuffer.
#ifdef DUSK_DISPLAY_SIZE_DYNAMIC