mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: fix off-by-one error in GL_PopPolygonOffset
This commit is contained in:
@@ -515,8 +515,8 @@ void GL_PopPolygonOffset( void )
|
||||
pglDisable( GL_POLYGON_OFFSET_FILL );
|
||||
else
|
||||
{
|
||||
pglPolygonOffset( glState.polyoffset_state[glState.num_polyoffsets].factor,
|
||||
glState.polyoffset_state[glState.num_polyoffsets].units );
|
||||
pglPolygonOffset( glState.polyoffset_state[glState.num_polyoffsets - 1].factor,
|
||||
glState.polyoffset_state[glState.num_polyoffsets - 1].units );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user