Browse Source

GL: document why this EM_ASM() stays here.

pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
e3cf1660ec
  1. 3
      src/Magnum/GL/Implementation/driverSpecific.cpp

3
src/Magnum/GL/Implementation/driverSpecific.cpp

@ -646,6 +646,9 @@ void Context::setupDriverWorkarounds() {
avoid having the workaround listed as used on older versions or other
browsers */
if(isExtensionSupported<Extensions::WEBGL::debug_renderer_info>()) {
/* Unlike other EM_ASM() macros, this one isn't put into a JS library
as it neither has any dependencies nor has code that may benefit
from settings-based preprocessing done for minification */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
const Int firefoxVersion = EM_ASM_INT({

Loading…
Cancel
Save