Browse Source

GL: warn if using --magnum-gpu-validation w/o debug context on AMD.

That's so far the only driver where it matters I think, so not printing
the warning elsewhere.
pull/362/head
Vladimír Vondruš 7 years ago
parent
commit
14911500bd
  1. 5
      src/Magnum/GL/Context.cpp

5
src/Magnum/GL/Context.cpp

@ -752,6 +752,11 @@ bool Context::tryCreate() {
Renderer::enable(Renderer::Feature::DebugOutput);
Renderer::enable(Renderer::Feature::DebugOutputSynchronous);
DebugOutput::setDefaultCallback();
if((detectedDriver() & DetectedDriver::Amd) && !(flags() & Flag::Debug)) {
Warning{} << "GL::Context: GPU validation on AMD drivers requires debug context to work properly";
}
} else Warning{} << "GL::Context: GPU validation requested, but GL_KHR_debug not supported";
#else
Warning{} << "GL::Context: GPU validation is not available on WebGL";

Loading…
Cancel
Save