glstate: Don't dump garbage when glReadPixels fail.
glstate: Fix typo in glBindRenderbuffer argument.
glstate: Bind the bound draw fbo for read before dumping.

Otherwise we'll dump the currently bound read fbo.
glstate: Create downsampled framebuffers for textures too.

Not really tested yet, as ended up not being the problem I was trying to
fix.