dungeon_crawler
diff prototype/src/main.cc @ 42:6d71dd4760f9
added flag to force the use of the fallback renderer
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 30 Aug 2012 05:38:03 +0300 |
parents | acfe0c0110fc |
children | f3030df27110 |
line diff
1.1 --- a/prototype/src/main.cc Thu Aug 30 05:35:00 2012 +0300 1.2 +++ b/prototype/src/main.cc Thu Aug 30 05:38:03 2012 +0300 1.3 @@ -90,7 +90,7 @@ 1.4 add_data_path("sdr"); 1.5 1.6 rend = new DeferredRenderer(); 1.7 - if(!rend->init(xsz, ysz)) { 1.8 + if(!cfg.use_deferred || !rend->init(xsz, ysz)) { 1.9 printf("falling back to crappy renderer...\n"); 1.10 1.11 rend = new FwdRenderer();