Fix use of uninitialized line/polygon smooth variables in GPU state

Found by valgrind, unclear if this caused an actual bug.
This commit is contained in:
Brecht Van Lommel 2020-10-23 15:27:47 +02:00
parent 9441c640c8
commit 8186b96753
1 changed files with 2 additions and 0 deletions

View File

@ -396,6 +396,8 @@ StateManager::StateManager(void)
state.shadow_bias = false;
state.polygon_smooth = false;
state.clip_distances = 0;
state.polygon_smooth = 0;
state.line_smooth = 0;
mutable_state.depth_range[0] = 0.0f;
mutable_state.depth_range[1] = 1.0f;