Skip to content

Commit

Permalink
Clean up some buffer ref casts
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Oct 16, 2023
1 parent 2dec48f commit da7eddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Plasma/FeatureLib/pfGLPipeline/plGLPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<plGLVertexBufferRef*>(vb);
plGLIndexBufferRef* iRef = static_cast<plGLIndexBufferRef*>(ib);
plGLMaterialShaderRef* mRef = static_cast<plGLMaterialShaderRef*>(material->GetDeviceRef());

if (!vRef->fRef || !iRef->fRef) {
Expand Down

0 comments on commit da7eddf

Please sign in to comment.