fix premul blend mode
parent
cc4c8edea0
commit
5b6baa1c41
|
@ -197,6 +197,7 @@ void renderbackground(const char *caption, Texture *mapshot, const char *mapname
|
|||
float bu = w*0.67f/256.0f + backgroundu, bv = h*0.67f/256.0f + backgroundv;
|
||||
bgquad(0, 0, w, h, 0, 0, bu, bv);
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||
#if 0
|
||||
settexture("<premul>data/background_detail.png", 0);
|
||||
float du = w*0.8f/512.0f + detailu, dv = h*0.8f/512.0f + detailv;
|
||||
|
|
Loading…
Reference in New Issue