diff --git a/src/Plugins/TgaImporter/TgaImporter.cpp b/src/Plugins/TgaImporter/TgaImporter.cpp index 471e3d652..201939127 100644 --- a/src/Plugins/TgaImporter/TgaImporter.cpp +++ b/src/Plugins/TgaImporter/TgaImporter.cpp @@ -121,7 +121,7 @@ std::optional TgaImporter::doImage2D(UnsignedInt) { /* Grayscale */ } else if(header.imageType == 3) { - #ifdef MAGNUM_TARGET_GLES + #ifdef MAGNUM_TARGET_GLES2 format = Context::current() && Context::current()->isExtensionSupported() ? ColorFormat::Red : ColorFormat::Luminance; #else