wined3d: Check GL_SUPPORT prior to an ARB occlusion call.