summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-10 17:04:57 +0200
committeraap <aap@papnet.eu>2020-08-10 17:04:57 +0200
commit2f987e315e11ee1d93b5f3c2cda3f593c254b373 (patch)
treedb9a108dee34fe6f726a61dc385cbbaf7a32f5b6
parente57d4508098a9a930724d018a2132a4e704b1cf1 (diff)
update librw (shadows are working now)
m---------librw0
-rw-r--r--src/render/ShadowCamera.cpp4
2 files changed, 2 insertions, 2 deletions
diff --git a/librw b/librw
-Subproject 99c15d5ed78cc112e1055cc89452dd57df28da5
+Subproject 113d76cfaaf064447ac936f79d91ea04788fca2
diff --git a/src/render/ShadowCamera.cpp b/src/render/ShadowCamera.cpp
index ae94f8ac..f69c234f 100644
--- a/src/render/ShadowCamera.cpp
+++ b/src/render/ShadowCamera.cpp
@@ -160,7 +160,7 @@ CShadowCamera::SetCenter(RwV3d *center)
ASSERT(m_pCamera != nil);
RwFrame *camFrame = RwCameraGetFrame(m_pCamera);
- RwMatrix *camMatrix = RwFrameGetMatrix(camFrame);
+ RwMatrix *camMatrix = RwFrameGetMatrix(camFrame);
*RwMatrixGetPos(camMatrix) = *center;
@@ -188,7 +188,7 @@ CShadowCamera::Update(RpClump *clump)
if ( RwCameraBeginUpdate(m_pCamera) )
{
- geometry = GetFirstAtomic(clump)->geometry;
+ geometry = RpAtomicGetGeometry(GetFirstAtomic(clump));
ASSERT(geometry != nil);
flags = RpGeometryGetFlags(geometry);