This works fine (static array):
GLubyte screenImage[screenImageHeight][screenImageWidth][3];
// array is filled with zeros
glDrawPixels(screenImageWidth, screenImageHeight, GL_RGB,GL_UNSIGNED_BYTE, screenImage);
This freezes my system (no errors, just freeze):
GLubyte ***screenImage;
// array is initialized dynamically;
// because this code is taken out of context, I am omittting
// the initializtion for the sake of clarity;
// I am very confident in the correctness of the initialization;
// array is filled with zeros
glDrawPixels(screenImageWidth, screenImageHeight, GL_RGB,GL_UNSIGNED_BYTE, screenImage);
In the call to glDrawPixels using the dynamic array, I have tried dereferencing (***screenImage) and casting (const GLvoid*). Neither fixed the problem.
Go
[edited by - orikal on May 25, 2004 11:51:24 AM]