#include #include namespace mbgl { namespace gl { using namespace platform; optional queryLocation(ProgramID id, const char* name) { GLint attributeLocation = MBGL_CHECK_ERROR(glGetAttribLocation(id, name)); if (attributeLocation != -1) { return attributeLocation; } else { return {}; } } } // namespace gl } // namespace mbgl