#import <OpenGL/OpenGL.h>
#import <OpenGL/gl.h>
+#include "wx/osx/core/private.h"
#include "wx/osx/private/glgrab.h"
extern CGColorSpaceRef wxMacGetGenericRGBColorSpace();
void * data;
long bytewidth;
GLint width, height;
- long bytes;
CGLContextObj glContextObj;
CGLPixelFormatObj pixelFormatObj ;
bytewidth = width * 4; // Assume 4 bytes/pixel for now
bytewidth = (bytewidth + 3) & ~3; // Align to 4 bytes
- bytes = bytewidth * height; // width * height
/* Build bitmap context */
data = malloc(height * bytewidth);