Rename OpenGL event to GraphicsBackend (#4515)
This commit is contained in:
committed by
GitHub
parent
a33d3f00fb
commit
042f21da5c
@@ -98,7 +98,7 @@ void Debugging::DebugCallback(GLenum source,
|
||||
}
|
||||
const std::string logMsg = "GL_" + strSource + " GL_" + strType + " " + std::to_string(id) + " GL_" + strSeverity +
|
||||
" - " + message;
|
||||
mln::Log::Record(evtSeverity, mln::Event::OpenGL, logMsg);
|
||||
mln::Log::Record(evtSeverity, mln::Event::GraphicsBackend, logMsg);
|
||||
}
|
||||
|
||||
} // namespace extension
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace platform {
|
||||
#ifndef NDEBUG
|
||||
void glCheckError(const char* cmd, const char* file, int line) {
|
||||
if (GLenum err = glGetError()) {
|
||||
Log::Warning(Event::OpenGL,
|
||||
Log::Warning(Event::GraphicsBackend,
|
||||
"Error" + std::to_string(err) + ": " + cmd + " - " + file + ":" + std::to_string(line));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ void RenderLayer::checkRenderability(const PaintParameters& parameters, const ui
|
||||
}
|
||||
|
||||
if (activeBindingCount > parameters.context.maximumVertexBindingCount) {
|
||||
Log::Error(Event::OpenGL,
|
||||
Log::Error(Event::GraphicsBackend,
|
||||
"The layer '" + getID() +
|
||||
"' uses more data-driven properties than the current device "
|
||||
"supports, and will have rendering errors. To ensure "
|
||||
@@ -105,7 +105,7 @@ void RenderLayer::checkRenderability(const PaintParameters& parameters, const ui
|
||||
" fewer data driven properties in this layer.");
|
||||
hasRenderFailures = true;
|
||||
} else if (activeBindingCount > gfx::Context::minimumRequiredVertexBindingCount) {
|
||||
Log::Warning(Event::OpenGL,
|
||||
Log::Warning(Event::GraphicsBackend,
|
||||
"The layer '" + getID() +
|
||||
"' uses more data-driven properties than some devices may "
|
||||
"support. "
|
||||
|
||||
@@ -121,7 +121,7 @@ public:
|
||||
gl::AttributeKey<AttributeList>::defines(attributeBindings)))
|
||||
.first;
|
||||
} catch (const std::runtime_error& e) {
|
||||
Log::Error(Event::OpenGL, e.what());
|
||||
Log::Error(Event::GraphicsBackend, e.what());
|
||||
failedInstances.insert(key);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ MBGL_DEFINE_ENUM(Event,
|
||||
{Event::HttpRequest, "HttpRequest"},
|
||||
{Event::Sprite, "Sprite"},
|
||||
{Event::Image, "Image"},
|
||||
{Event::OpenGL, "OpenGL"},
|
||||
{Event::GraphicsBackend, "GraphicsBackend"},
|
||||
{Event::JNI, "JNI"},
|
||||
{Event::Android, "Android"},
|
||||
{Event::Crash, "Crash"},
|
||||
|
||||
Reference in New Issue
Block a user