mirror of
https://github.com/harfang3d/harfang3d.git
synced 2024-06-16 20:13:03 +00:00
Update render_pipeline.cpp
This commit is contained in:
parent
f6ddda8654
commit
d0c9d20f67
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user