[core] add MBGL_CHECK_ERROR to some locations where it was missing
This commit is contained in:
@@ -10,9 +10,9 @@ namespace gl {
|
||||
DebugGroup::DebugGroup(const Context& context_, const std::string& name) : context(context_) {
|
||||
if (auto debugging = context.getDebuggingExtension()) {
|
||||
if (debugging->pushDebugGroup) {
|
||||
debugging->pushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, GLsizei(name.size()), name.c_str());
|
||||
MBGL_CHECK_ERROR(debugging->pushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, GLsizei(name.size()), name.c_str()));
|
||||
} else if (debugging->pushGroupMarkerEXT) {
|
||||
debugging->pushGroupMarkerEXT(GLsizei(name.size() + 1), name.c_str());
|
||||
MBGL_CHECK_ERROR(debugging->pushGroupMarkerEXT(GLsizei(name.size() + 1), name.c_str()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,9 +20,9 @@ DebugGroup::DebugGroup(const Context& context_, const std::string& name) : conte
|
||||
DebugGroup::~DebugGroup() {
|
||||
if (auto debugging = context.getDebuggingExtension()) {
|
||||
if (debugging->popDebugGroup) {
|
||||
debugging->popDebugGroup();
|
||||
MBGL_CHECK_ERROR(debugging->popDebugGroup());
|
||||
} else if (debugging->popGroupMarkerEXT) {
|
||||
debugging->popGroupMarkerEXT();
|
||||
MBGL_CHECK_ERROR(debugging->popGroupMarkerEXT());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user