ensure no writes out of the buffer area in glReadPixels