Revert "fixed --opengl-renderer from segfaulting. Added a gitignore for vim swap files"

This reverts commit 90f71f3b11.
This commit is contained in:
Bryan Hoyle 2012-08-12 15:13:32 -04:00
parent 1b2e0e68bd
commit 90f505c2da
2 changed files with 1 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
*.swp
*.o
*.exe
*.user

View File

@ -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)