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) {