TINYGL: implemented tglAlphaTest

This commit is contained in:
Pawel Kolodziejski 2014-07-04 22:24:28 +02:00
parent 5f87912e91
commit 7370dcd635
2 changed files with 46 additions and 3 deletions

View file

@ -117,7 +117,7 @@ void glopBlendFunc(GLContext *c, GLParam *p) {
void glopAlphaFunc(GLContext *c, GLParam *p) {
TGLenum func = p[1].i;
float ref = p[2].i;
float ref = p[2].f;
c->fb->setAlphaTestFunc(func, ref);
}