erebus
diff src/main.cc @ 21:e49f4d7ad04c
started adding BRDFs
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 28 May 2014 07:06:29 +0300 |
parents | 6204e4d3f445 |
children | 56d504cc555a |
line diff
1.1 --- a/src/main.cc Tue May 27 07:49:09 2014 +0300 1.2 +++ b/src/main.cc Wed May 28 07:06:29 2014 +0300 1.3 @@ -75,10 +75,12 @@ 1.4 } 1.5 } 1.6 1.7 - printf("begin rendering\n"); 1.8 - render_pending = true; 1.9 - glutIdleFunc(idle); 1.10 - erb_begin_frame(erb, 0); 1.11 + if(!sfiles.empty()) { 1.12 + printf("begin rendering\n"); 1.13 + render_pending = true; 1.14 + glutIdleFunc(idle); 1.15 + erb_begin_frame(erb, 0); 1.16 + } 1.17 1.18 glEnable(GL_TEXTURE_2D); 1.19 return true;