From c019781471ba7da03e78e48b85ca0e2cf4299ddb Mon Sep 17 00:00:00 2001 From: Pixelflinger Date: Thu, 7 May 2020 21:15:58 -0700 Subject: [PATCH] only log "no texture bound" in debug builds This is way to verbose in release builds, and since it's not a bug issue on GLES, we silence this for now. --- filament/backend/src/opengl/OpenGLProgram.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }