dungeon_crawler

diff prototype/src/sdr.c @ 17:d98240a13793

lalala
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 20 Aug 2012 06:11:58 +0300
parents 3a3236a4833c
children fa8f89d06f6f
line diff
     1.1 --- a/prototype/src/sdr.c	Mon Aug 20 03:40:51 2012 +0300
     1.2 +++ b/prototype/src/sdr.c	Mon Aug 20 06:11:58 2012 +0300
     1.3 @@ -173,10 +173,10 @@
     1.4  {
     1.5  	unsigned int vs = 0, ps = 0;
     1.6  
     1.7 -	if(vfile && !(vs = get_vertex_shader(vfile))) {
     1.8 +	if(vfile && *vfile && !(vs = get_vertex_shader(vfile))) {
     1.9  		return 0;
    1.10  	}
    1.11 -	if(pfile && !(ps = get_pixel_shader(pfile))) {
    1.12 +	if(pfile && *pfile && !(ps = get_pixel_shader(pfile))) {
    1.13  		return 0;
    1.14  	}
    1.15  	return create_program_link(vs, ps);