changeset 1044:cdf7ad53965a

fix: log output
author sam <sam@basx.dev>
date Mon, 25 Mar 2024 22:26:58 +0700
parents 8467ce0d99de
children e02d8e65d68e db22d7d99e63
files semicongine/renderer.nim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/renderer.nim	Mon Mar 25 07:52:24 2024 -0700
+++ b/semicongine/renderer.nim	Mon Mar 25 22:26:58 2024 +0700
@@ -387,9 +387,9 @@
             if value.len <= uniform.arrayCount:
               debug &"Uniform '{uniform.name}' found has short length (shader declares {uniform.arrayCount} but shaderGlobals and materials provide {value.len})"
             assert value.size <= uniform.size, &"During uniform update: gathered value has size {value.size} but uniform expects size {uniform.size}"
-            if value.size <= uniform.size:
+            if value.size < uniform.size:
               debug &"During uniform update: gathered value has size {value.size} but uniform expects size {uniform.size}"
-            debug &"  update uniform {uniform.name} with value: {value}"
+            debug &"  update uniform '{uniform.name}' with value: {value}"
             # TODO: technically we would only need to update the uniform buffer of the current
             # frameInFlight (I think), but we don't track for which frame the shaderglobals are no longer dirty
             # therefore we have to update the uniform values in all buffers, of all inFlightframes (usually 2)