Route UI capability queries through GL backend

This commit is contained in:
2026-06-04 23:29:30 +02:00
parent 2a4698e9f6
commit c9fb91ab48
6 changed files with 108 additions and 20 deletions

View File

@@ -382,7 +382,9 @@ Known local toolchain state:
now uses shared `parallel_for` instead of platform-specific worker APIs. Its
live heightmap draw and bake paths now execute depth/blend state changes,
depth clears, color-write-mask toggles, active texture selection, and bake
viewport changes through tested `pp_renderer_gl` dispatch adapters.
viewport changes through tested `pp_renderer_gl` dispatch adapters. Grid
depth-state snapshots and sun overlay viewport queries now use tested backend
query dispatch as well.
Legacy `util.cpp` OpenGL error naming and `gl_state` save/restore also
consume backend-owned error codes, state queries, framebuffer targets,
texture binding targets, and active texture units.
@@ -397,7 +399,8 @@ Known local toolchain state:
panorama rendering use the same tested active-texture dispatch for
texture-unit switches, and their live viewport, scissor, and generic
depth/blend/scissor capability changes now route through the same backend
dispatch contracts. Retained `Canvas` stroke draw/commit, thumbnail
dispatch contracts. `NodeCanvas` saved blend/depth/scissor capability-state
queries now use tested backend query dispatch too. Retained `Canvas` stroke draw/commit, thumbnail
generation, object rendering, and `LayerFrame::clear` saved viewport or
clear-color query plus clear-color restore paths also use tested
`pp_renderer_gl` dispatch helpers. `NodeCanvas` saved viewport/clear-color
@@ -438,7 +441,8 @@ Known local toolchain state:
viewport execution, 2D texture copy targets, and RGBA8 readback format tokens;
canvas-tip pick readback now routes through tested framebuffer readback
dispatch using the active read framebuffer, with only a local OpenGL adapter
endpoint retained in `src/canvas_modes.cpp`.
endpoint retained in `src/canvas_modes.cpp`. Paint-mode blend/depth state
snapshots now use tested capability-state query dispatch.
`NodeCanvas` panorama UI rendering also consumes backend-owned sampler
defaults, tested viewport/clear-color query dispatch, blend/depth/scissor
state, color-buffer clear dispatch, clear-color restore, active texture
@@ -663,6 +667,8 @@ Known local toolchain state:
NodeStrokePreview texture-unit switches,
tested viewport/scissor/capability dispatch consumed by retained Canvas,
NodeCanvas, NodeStrokePreview, and HMD render-state paths,
tested capability-state query dispatch consumed by retained `NodeCanvas`,
`CanvasMode`, and `NodePanelGrid` draw-state restore paths,
tested viewport query, clear-color query, and clear-color restore dispatch
consumed by retained `Canvas`, `CanvasLayer`, `NodeCanvas`, and
`NodeStrokePreview` draw-state paths,