DRW: Fix incorrect blending function reset.

This commit is contained in:
Clément Foucault 2018-05-07 18:29:37 +02:00
parent 3800be695b
commit 3c79043f1b
1 changed files with 2 additions and 2 deletions

View File

@ -364,10 +364,10 @@ void DRW_state_lock(DRWState state)
void DRW_state_reset(void)
{
DRW_state_reset_ex(DRW_STATE_DEFAULT);
/* Reset blending function */
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
DRW_state_reset_ex(DRW_STATE_DEFAULT);
}
/* NOTE : Make sure to reset after use! */