Skip to content

Conversation

@SanyaSho
Copy link
Contributor

@SanyaSho SanyaSho commented Jan 28, 2026

Description

When CProceduralTexturePanel calls it's CleanUp function it decrements the current texture handle ref index value and since the texture name never[1][2] gets changed you're left with a invalid texture until you restart the game

This fix is based on how econ deals with prodecural textures
It might be better to use a static int as a serial for the texture, but it works

Video demonstration of a bug:

colorpicker_bug.mp4

Fixed version:

colorpicker_nobug.mp4

… created texture handle

CColorXYPreview panel is no longer trying to use decremented (invalid) texture handle from MaterialSystem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant