Raspberry Pi doesn't have glCheckFrameBufferStatus in ES 1 mode,
same as Android. This was checked in one place but not another,
causing FBOs to not work with 16 bit textures.
Fix for last commit: on RPi glCheckFrameBufferStatus doesn't work
regardless of OpenGL ES version being used (even on ES 2.)