deepstone

diff src/mglrast.c @ 28:11d14f688485

added clipping
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Sep 2013 06:38:08 +0300
parents 5ff8ce78059a
children 17a5107b6fa4
line diff
     1.1 --- a/src/mglrast.c	Sun Sep 22 02:47:46 2013 +0300
     1.2 +++ b/src/mglrast.c	Sun Sep 22 06:38:08 2013 +0300
     1.3 @@ -146,13 +146,13 @@
     1.4  	};
     1.5  	int bits = 0;
     1.6  
     1.7 -	if((st->flags & MGL_TEXTURE_2D) && st->tex.pixels) {
     1.8 +	if(IS_ENABLED(st->flags, MGL_TEXTURE_2D) && st->tex.pixels) {
     1.9  		bits |= 4;
    1.10  	}
    1.11 -	if(st->flags & MGL_SMOOTH) {
    1.12 +	if(IS_ENABLED(st->flags, MGL_SMOOTH)) {
    1.13  		bits |= 2;
    1.14  	}
    1.15 -	if((st->flags & MGL_DEPTH_TEST) && fb->zbuf) {
    1.16 +	if(IS_ENABLED(st->flags, MGL_DEPTH_TEST) && fb->zbuf) {
    1.17  		bits |= 1;
    1.18  	}
    1.19