From e23d427fdcc6a2c28fd3553f9cc8cdce1b40144e Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 9 Sep 2023 13:41:40 -0700 Subject: [PATCH] Clean up some buffer ref casts --- Sources/Plasma/FeatureLib/pfGLPipeline/plGLPipeline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfGLPipeline/plGLPipeline.cpp b/Sources/Plasma/FeatureLib/pfGLPipeline/plGLPipeline.cpp index 94fa22ef68..51fa286f2a 100644 --- a/Sources/Plasma/FeatureLib/pfGLPipeline/plGLPipeline.cpp +++ b/Sources/Plasma/FeatureLib/pfGLPipeline/plGLPipeline.cpp @@ -839,8 +839,8 @@ void plGLPipeline::IRenderBufferSpan(const plIcicle& span, { plProfile_BeginTiming(RenderBuff); - typename DeviceType::VertexBufferRef* vRef = (typename DeviceType::VertexBufferRef*)vb; - typename DeviceType::IndexBufferRef* iRef = (typename DeviceType::IndexBufferRef*)ib; + plGLVertexBufferRef* vRef = static_cast(vb); + plGLIndexBufferRef* iRef = static_cast(ib); plGLMaterialShaderRef* mRef = static_cast(material->GetDeviceRef()); if (!vRef->fRef || !iRef->fRef) {