diff --git a/filament/backend/src/opengl/OpenGLProgram.cpp b/filament/backend/src/opengl/OpenGLProgram.cpp index fb7d7bebc9..b71e5eee30 100644 --- a/filament/backend/src/opengl/OpenGLProgram.cpp +++ b/filament/backend/src/opengl/OpenGLProgram.cpp @@ -199,7 +199,9 @@ void OpenGLProgram::updateSamplers(OpenGLDriver* gl) noexcept { Handle th = samplers[index].t; if (UTILS_UNLIKELY(!th)) { +#ifndef NDEBUG slog.w << "no texture bound to unit " << +index << io::endl; +#endif continue; }