From 1ac5652bfe118c5db931d3d4a9c0c4758647b461 Mon Sep 17 00:00:00 2001 From: SomaZ <17459161+SomaZ@users.noreply.github.com> Date: Mon, 6 May 2024 20:56:28 +0200 Subject: [PATCH] [rend2] Fixing shaders spriteUbo again it's an UNsigned integer, make sure to use unsigned integers... related bad fix: 9a61f07f2763612c33d5948d13fb32344a66c6dc --- shared/rd-rend2/tr_bsp.cpp | 2 +- shared/rd-rend2/tr_shader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/rd-rend2/tr_bsp.cpp b/shared/rd-rend2/tr_bsp.cpp index 7208fb04e2..8af2e90921 100644 --- a/shared/rd-rend2/tr_bsp.cpp +++ b/shared/rd-rend2/tr_bsp.cpp @@ -4017,7 +4017,7 @@ static void R_GenerateSurfaceSprites( const world_t *world, int worldIndex ) for (int i = 0; i < tr.numShaders; i++) { const shader_t *shader = tr.shaders[i]; - if (shader->spriteUbo != -1) + if (shader->spriteUbo != 0) continue; numSpriteStages += shader->numSurfaceSpriteStages; diff --git a/shared/rd-rend2/tr_shader.cpp b/shared/rd-rend2/tr_shader.cpp index 6991eef201..1f6556b5b0 100644 --- a/shared/rd-rend2/tr_shader.cpp +++ b/shared/rd-rend2/tr_shader.cpp @@ -3810,7 +3810,7 @@ static shader_t *GeneratePermanentShader( void ) { } RB_AddShaderToShaderInstanceUBO(newShader); - newShader->spriteUbo = -1; + newShader->spriteUbo = 0; SortNewShader();