dungeon_crawler

diff prototype/src/renderer.cc @ 29:2fc004802739

lalala
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 26 Aug 2012 03:39:32 +0300
parents fa8f89d06f6f
children 938a6a155c94
line diff
     1.1 --- a/prototype/src/renderer.cc	Sat Aug 25 20:20:56 2012 +0300
     1.2 +++ b/prototype/src/renderer.cc	Sun Aug 26 03:39:32 2012 +0300
     1.3 @@ -124,13 +124,6 @@
     1.4  
     1.5  void render_deferred(const Level *level)
     1.6  {
     1.7 -	glClearColor(0.4, 0.2, 0.1, 0.0);
     1.8 -	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
     1.9 -	glPushAttrib(GL_ENABLE_BIT);
    1.10 -	glDisable(GL_LIGHTING);
    1.11 -	level->draw_lights();
    1.12 -	glPopAttrib();
    1.13 -#if 0
    1.14  	// render into the MRT buffers
    1.15  	glUseProgram(mrt_prog);
    1.16  	glBindFramebufferEXT(GL_FRAMEBUFFER, fbo);
    1.17 @@ -145,7 +138,6 @@
    1.18  	glPushAttrib(GL_ENABLE_BIT);
    1.19  
    1.20  	glDisable(GL_LIGHTING);
    1.21 -	glDisable(GL_DEPTH_TEST);
    1.22  
    1.23  	glUseProgram(deferred_omni);
    1.24  	for(int i=0; i<MRT_COUNT; i++) {
    1.25 @@ -165,7 +157,6 @@
    1.26  
    1.27  	glUseProgram(0);
    1.28  	glPopAttrib();
    1.29 -#endif
    1.30  }
    1.31  
    1.32  static bool create_fbo(int xsz, int ysz)