check common errors in glCheckFramebufferStatus in the client to reduce
number of sync calls
support check image read format of BGRA