Skip to content

Commit 1c77b73

Browse files
committed
blendfunc no longer requires enable call
1 parent 844eff3 commit 1c77b73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Qor/Pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@ void Pipeline :: render(
353353
// set up multi-pass state
354354
if(not has_lights){
355355
if(m_bBlend) {
356+
glEnable(GL_BLEND);
356357
if(m_BlendFunc)
357358
m_BlendFunc();
358359
else{
359-
glEnable(GL_BLEND);
360360
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
361361
}
362362
//glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

0 commit comments

Comments
 (0)