TINYGL: Always pass the depth test if TGL_DEPTH_TEST is disabled.

This commit is contained in:
Joni Vähämäki 2014-08-10 16:13:50 +03:00
parent 09b062acdd
commit c420196014
3 changed files with 11 additions and 0 deletions

View file

@ -60,6 +60,7 @@ void glopEnableDisable(GLContext *c, GLParam *p) {
break;
case TGL_DEPTH_TEST:
c->depth_test = v;
c->fb->enableDepthTest(v);
break;
case TGL_ALPHA_TEST:
c->_alphaTestEnabled = v;