more bug fixes- in particular, presetOutputs now has a destructor

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@444 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-09-19 21:32:26 +00:00
parent d1efb37060
commit 3103c81baa
3 changed files with 44 additions and 9 deletions

View File

@ -279,7 +279,7 @@ Renderer::~Renderer() {
std::cerr << "freeing grid elements" << std::endl;
assert(gx > 0);
for(x = 0; x < this->gx; x++)
{
{
free(this->gridx[x]);
free(this->gridy[x]);
free(this->origx2[x]);
@ -299,7 +299,7 @@ std::cerr << "grid assign begin " << std::endl;
this->origy2 = NULL;
this->gridx = NULL;
this->gridy = NULL;
std::cerr << "grid assign end" << std::endl;
#endif
@ -399,11 +399,6 @@ void Renderer::reset(int w, int h)
this -> vw = w;
this -> vh = h;
//FIXME maybe needs called elsewhere
//if (!this->renderTarget->usePbuffers) {
// renderTarge->createPBuffers(w,h,this->renderTarget);
// }
/* Our shading model--Gouraud (smooth). */
glShadeModel( GL_SMOOTH);
/* Culling. */