istereo

diff src/tex.c @ 27:fd39c0198935

normal mapped tunnel
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 08 Sep 2011 08:30:00 +0300
parents 862a3329a8f0
children ff055bff6a15
line diff
     1.1 --- a/src/tex.c	Thu Sep 08 06:28:38 2011 +0300
     1.2 +++ b/src/tex.c	Thu Sep 08 08:30:00 2011 +0300
     1.3 @@ -13,6 +13,9 @@
     1.4  	unsigned int tex;
     1.5  	void *pixels;
     1.6  
     1.7 +	if(!fname) {
     1.8 +		return 0;
     1.9 +	}
    1.10  	if(!(pixels = img_load_pixels(fname, &xsz, &ysz, IMG_FMT_RGBA32))) {
    1.11  		fprintf(stderr, "failed to load image: %s\n", fname);
    1.12  		return 0;