Skip to content

Commit

Permalink
fixed swf line drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrievG authored and RobertBeckebans committed Jun 14, 2024
1 parent ebccc8c commit 899328c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/swf/SWF_Render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ void idSWF::RenderShape( idRenderSystem* gui, const idSWFShape* shape, const swf
uint32 packedColorM = LittleLong( PackColor( color.mul ) );
uint32 packedColorA = LittleLong( PackColor( ( color.add * 0.5f ) + idVec4( 0.5f ) ) ); // Compress from -1..1 to 0..1

gui->SetGLState( GLStateForRenderState( renderState ) | GLS_POLYMODE_LINE );
gui->SetGLState( GLStateForRenderState( renderState ) );

idDrawVert* verts = gui->AllocTris( line.startVerts.Num(), line.indices.Ptr(), line.indices.Num(), white, renderState.stereoDepth );
if( verts == NULL )
Expand Down

0 comments on commit 899328c

Please sign in to comment.