glstate: Flush previous GL errors before trying to get parameters.
glstate: Pick a face when dumping cube map level parameters.

glGetTexLevelParameter(GL_TEXTURE_CUBE_MAP) is invalid.
glstate: Dump parameters for array and multisample texture targets.