Unify more shader uniform update code, fix bug in fallback for Uint8x3ToFloat4.

This commit is contained in:
Henrik Rydgård committed 2026-06-13 10:14:39 +02:00
1 parent 884af80a31
commit c5931ea690
5 files changed
+51 -74

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ inline void Uint8x3ToFloat4(float f[4], uint32_t u) {
f[0] = ((u >> 0) & 0xFF) * (1.0f / 255.0f);
f[1] = ((u >> 8) & 0xFF) * (1.0f / 255.0f);
f[2] = ((u >> 16) & 0xFF) * (1.0f / 255.0f);
f[3] = ((u >> 24) & 0xFF) * (1.0f / 255.0f);
f[3] = 0.0f;
#endif
}