From 90f505c2dae361b4950119cdca6abbd7f7b7a0e5 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Sun, 12 Aug 2012 15:13:32 -0400 Subject: [PATCH] Revert "fixed --opengl-renderer from segfaulting. Added a gitignore for vim swap files" This reverts commit 90f71f3b11373bda502405856062803111f247d5. --- .gitignore | 3 +-- src/graphics/Renderer.cpp | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index c7c2fb23a..3082d61c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -*.swp *.o *.exe *.user @@ -33,4 +32,4 @@ Makefile.me *.settings config.log *.sconsign.dblite -*.sconf_temp +*.sconf_temp \ No newline at end of file diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index 57d4f8d96..c0e045573 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -123,10 +123,8 @@ void Renderer::clearScreen(float alpha) glClear(GL_COLOR_BUFFER_BIT); #endif #ifdef OGLI -#ifndef OGLR std::fill(vid, vid+(VIDXRES*VIDYRES), 0); #endif -#endif } #ifdef OGLR void Renderer::checkShader(GLuint shader, char * shname) @@ -2376,9 +2374,7 @@ void Renderer::ClearAccumulation() std::fill(fire_r[0]+0, fire_r[(YRES/CELL)-1]+((XRES/CELL)-1), 0); std::fill(fire_g[0]+0, fire_g[(YRES/CELL)-1]+((XRES/CELL)-1), 0); std::fill(fire_b[0]+0, fire_b[(YRES/CELL)-1]+((XRES/CELL)-1), 0); -#ifndef OGLR std::fill(persistentVid, persistentVid+(VIDXRES*YRES), 0); -#endif } void Renderer::AddRenderMode(unsigned int mode)