fix premul blend mode

master
Lee Salzman 2013-05-09 10:03:09 +03:00
parent cc4c8edea0
commit 5b6baa1c41
1 changed files with 1 additions and 0 deletions

View File

@ -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;