Skip to content

Correctly set glConfig.reflectionMappingAvailable#1978

Open
slipher wants to merge 2 commits into
DaemonEngine:masterfrom
slipher:reflection-avail
Open

Correctly set glConfig.reflectionMappingAvailable#1978
slipher wants to merge 2 commits into
DaemonEngine:masterfrom
slipher:reflection-avail

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented Jun 5, 2026

Fixes a crash with r_showCubeProbes.

slipher added 2 commits June 5, 2026 07:29
glConfig.reflectionMappingAvailable was set after shaders are loaded, so
gl_reflectionShader was not loaded when it should be. Set it in
EnableAvailableFeatures().

Also it could only be set to true; if you turned off the cvar the next
map change would not set it to false.

Fixes the bug that r_showCubeProbes causes a crash (due to null
gl_reflectionShader) if reflection mapping was not enabled in the
previous renderer load.
If a required feature of normal/deluxe/specular mapping was disabled for
a reason other than the cvar, glConfig.reflectionMappingAvailable
must be set to false.
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