Fixed condition (Thanks to Raakz)
Former-commit-id: 57b41719ccfea5d60ca4edb79da5b2f0548a56d5
This commit is contained in:
parent
a5fb0c804f
commit
274aa96037
|
|
@ -118,7 +118,7 @@ namespace
|
||||||
|
|
||||||
void NzOpenGL::ApplyStates(const NzRenderStates& states)
|
void NzOpenGL::ApplyStates(const NzRenderStates& states)
|
||||||
{
|
{
|
||||||
if (states.dstBlend != states.dstBlend || s_states.srcBlend != states.srcBlend)
|
if (s_states.dstBlend != states.dstBlend || s_states.srcBlend != states.srcBlend)
|
||||||
{
|
{
|
||||||
glBlendFunc(BlendFunc[states.srcBlend], BlendFunc[states.dstBlend]);
|
glBlendFunc(BlendFunc[states.srcBlend], BlendFunc[states.dstBlend]);
|
||||||
s_states.dstBlend = states.dstBlend;
|
s_states.dstBlend = states.dstBlend;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue