temporarily use a fixed red buffer
remove red test pattern.
add conditional #define NEEDS_POWER_OF_TWO to work on Dev Alpha A (why???)
clean up co-ordinate array formatting
fixed power-of-2 problem on Dev Alpha A.
need to set GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T.  seems the defaults differ on the 2 devices.
Fixed bug where wrong format was used for OpenGL image.
Merged changes from upstream