dungeon_crawler
diff prototype/src/light.cc @ 41:acfe0c0110fc
- cleaned up the renderer
- implemented fallback (non-deferred renderer)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 30 Aug 2012 05:35:00 +0300 |
parents | 862461b686f4 |
children | f3030df27110 |
line diff
1.1 --- a/prototype/src/light.cc Thu Aug 30 03:05:04 2012 +0300 1.2 +++ b/prototype/src/light.cc Thu Aug 30 05:35:00 2012 +0300 1.3 @@ -114,7 +114,7 @@ 1.4 1.5 void PointLight::draw() const 1.6 { 1.7 - unsigned int sdr = get_deferred_shader(); 1.8 + unsigned int sdr = rend->get_current_program(); 1.9 if(sdr) { 1.10 int loc; 1.11 if((loc = glGetUniformLocation(sdr, "light_radius")) != -1) {