replace Query GLenum parameter with a type-safe enum