From 0e9a44dd43441c081266665c74a150afa0386858 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Wed, 13 Jan 2021 14:55:55 +0200 Subject: Fix backface culling of cutscene objects --- src/objects/CutsceneObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects/CutsceneObject.cpp b/src/objects/CutsceneObject.cpp index e36d8e25..7d9fe640 100644 --- a/src/objects/CutsceneObject.cpp +++ b/src/objects/CutsceneObject.cpp @@ -150,9 +150,9 @@ CCutsceneObject::PreRender(void) void CCutsceneObject::Render(void) { - RwRenderStateSet(rwRENDERSTATECULLMODE, (void *)rwCULLMODECULLNONE); + SetCullMode(rwCULLMODECULLNONE); CObject::Render(); - RwRenderStateSet(rwRENDERSTATECULLMODE, (void *)rwCULLMODECULLBACK); + SetCullMode(rwCULLMODECULLBACK); } bool -- cgit v1.2.3