Update render_pipeline.cpp

This commit is contained in:
RobEwbank1 2023-02-22 15:22:33 +00:00 committed by GitHub
parent f6ddda8654
commit d0c9d20f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,13 +322,13 @@ void SetMaterialWriteRGBA(Material &m, bool write_r, bool write_g, bool write_b,
void SetMaterialPrimitiveType(Material &m, PrimitiveType primitive_type){
m.state.state &= ~BGFX_STATE_PT_MASK;
if (primative_type == PRIM_T_TriangleStrip)
if (primitive_type == PRIM_T_TriangleStrip)
m.state.state |= BGFX_STATE_PT_TRISTRIP;
else if (primative_type == PRIM_T_Lines)
else if (primitive_type == PRIM_T_Lines)
m.state.state |= BGFX_STATE_PT_LINES;
else if (primative_type == PRIM_T_LineStrip)
else if (primitive_type == PRIM_T_LineStrip)
m.state.state |= BGFX_STATE_PT_LINESTRIP;
else if (primative_type == PRIM_T_Points)
else if (primitive_type == PRIM_T_Points)
m.state.state |= BGFX_STATE_PT_POINTS;
}