--- lib/database/src/so/elements/SoGLTextureImageElement.c++ Tue May 29 18:48:20 2001
+++ lib/database/src/so/elements/SoGLTextureImageElement.c++.new Fri Aug 19 01:21:23 2005
- alloca(newSize[0]*newSize[1]*numComponents*sizeof(GLubyte));
+ // alloca(newSize[0]*newSize[1]*numComponents*sizeof(GLubyte));
+ level0 = new unsigned char[newSize[0]*newSize[1]*numComponents];
// Use gluScaleImage (which does linear interpolation or box
// filtering) if using a linear interpolation magnification
const GLubyte *prevLevel = NULL;
- alloca(newSize[0]*newSize[1]*numComponents*sizeof(GLubyte));
+ //alloca(newSize[0]*newSize[1]*numComponents*sizeof(GLubyte));
+ level0 = new unsigned char[newSize[0]*newSize[1]*numComponents];
glPixelStorei(GL_UNPACK_ALIGNMENT, 4); // Reset to default