Skip to content

Commit

Permalink
[rend2] Fixing shaders spriteUbo again
Browse files Browse the repository at this point in the history
it's an UNsigned integer, make sure to use unsigned integers...

related bad fix:
9a61f07
  • Loading branch information
SomaZ committed May 6, 2024
1 parent 97e902a commit 1ac5652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/rd-rend2/tr_bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion shared/rd-rend2/tr_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3810,7 +3810,7 @@ static shader_t *GeneratePermanentShader( void ) {
}

RB_AddShaderToShaderInstanceUBO(newShader);
newShader->spriteUbo = -1;
newShader->spriteUbo = 0;

SortNewShader();

Expand Down

0 comments on commit 1ac5652

Please sign in to comment.