To give OpenGL the pixel bytes to my image I\'m allocating a buffer using malloc and filling it:
malloc
int pixelCount = width * height * 4; unsigned ch