Fix FBO related queries with OGL3.2+