view3d

changeset 6:cfd22a190353

fixed crash when there aren't any lights
author John Tsiombikas <nuclear@mutantstargoat.com>
date Fri, 20 Jan 2012 04:03:04 +0200
parents 58ddd42848f9
children 75e4377f3cdc
files src/scene.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/scene.c	Thu Jan 19 07:37:31 2012 +0200
     1.2 +++ b/src/scene.c	Fri Jan 20 04:03:04 2012 +0200
     1.3 @@ -273,7 +273,9 @@
     1.4  			m = m->next;
     1.5  		}
     1.6  		pass++;
     1.7 -		lt = lt->next;
     1.8 +		if(lt) {
     1.9 +			lt = lt->next;
    1.10 +		}
    1.11  	}
    1.12  
    1.13  	glDisable(GL_BLEND);