[GL-C4] LLGLEnable/LLGLDepthTest/LLGLS* → LLRender state scopes #73
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope: Introduce
gGL.pushState-style scopes that takeLLRender::CF_*/BT_*. Mechanically convert the 367 newview, 6 llui and 5 llappearance uses (VK-live UI and overlay first; dead files are gone by then).Prereq: B7–B11
Acceptance: UI, selection overlays, property lines and ban lines render with correct depth
Risk: med
Shared acceptance baseline: links; logs in under VK and renders prims/mesh/rigged/terrain/water/sky/particles; click-select object/avatar/attachment; region crossing + teleport; no
GLSL Compilation Error|SIGSEGVin the log.Source: research/gl_removal_map.md
Status check (verification sweep): not started. There are still 22 LLGLEnable uses (6 files), 91 LLGLDepthTest uses (31 files) and 136 LLGLS* uses (43 files).
Verified against forgejo/main: NOT DONE, leaving open. LLGLState-style scopes still exist: ~190 uses of LLGLEnable/LLGLDisable/LLGLDepthTest/LLGLState/LLGLS* remain, with llrender/llgl.h + llglstates.h + llgl.cpp still defining them. Biggest users: fsmaniprotatejoint.cpp (26), llglsandbox.cpp (13), llmaniptranslate.cpp (10), llmanipscale.cpp (8), llmaniprotate.cpp (7), lltoolcomp.cpp (5), lltextureview.cpp (5), fsmaniptranslatejoint.cpp (5), llappearance/lltexlayer.cpp:149,368,369 (5), llmodelpreview.cpp (4), plus ~35 more files with 1-3 each (huds, tracker, world map, parcel overlay, avatar, etc.). No gGL.pushState-style CF_/BT_ scope has replaced them.
Pushed to main at
07c8a3ac73.LLGL*state guards replaced byLLRenderstate scopes;llglstates.hdeleted.Shipped in a published release and tested; closing (testing-lane sweep 2026-10-11).