summaryrefslogtreecommitdiff
path: root/src/gpu/effect.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-12 01:53:21 +0100
committerskal <pascal.massimino@gmail.com>2026-02-12 01:53:21 +0100
commit9595e9efaf343a8d37c9641eeb89f1c847a568a6 (patch)
treea9cfd9c9d0ef84b470d3872079ef496ff2d85725 /src/gpu/effect.cc
parent0fcb17f6e0c0ab449c5432f4bbacd6948e1283cd (diff)
fix: suppress spurious shader snippet and auxiliary texture warningsHEADmain
- Add render/scene_query_mode to known placeholders in VerifyIncludes - Remove warning for duplicate auxiliary texture registration (valid for multiple CNNEffect stacks) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu/effect.cc')
-rw-r--r--src/gpu/effect.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gpu/effect.cc b/src/gpu/effect.cc
index e0a9c24..3ee2acd 100644
--- a/src/gpu/effect.cc
+++ b/src/gpu/effect.cc
@@ -457,13 +457,9 @@ void MainSequence::register_auxiliary_texture(const char* name, int width,
int height) {
const std::string key(name);
- // Check if already exists
+ // Check if already exists (silent, idempotent registration is valid)
auto it = auxiliary_textures_.find(key);
if (it != auxiliary_textures_.end()) {
-#if !defined(STRIP_ALL)
- fprintf(stderr, "Warning: Auxiliary texture '%s' already registered\n",
- name);
-#endif /* !defined(STRIP_ALL) */
return;
}