Share retained utility GL dispatch bridges

This commit is contained in:
2026-06-05 15:05:07 +02:00
parent ad9b91eeda
commit 96d1903cf2
5 changed files with 69 additions and 108 deletions

View File

@@ -1265,9 +1265,11 @@ readback also goes through the tested framebuffer-backed texture readback
dispatch instead of direct `glGetTexImage`. Grid depth-state snapshots and sun
overlay viewport queries now also use tested backend query dispatch instead of
direct state reads.
Legacy `util.cpp` OpenGL error naming and `gl_state` save/restore now delegate
error codes, state queries, framebuffer targets, texture binding targets, and
active texture units to `pp_renderer_gl`.
Legacy `util.cpp` OpenGL error naming, framebuffer-to-texture copy helper, and
`gl_state` save/restore now delegate error codes, state queries, framebuffer
targets, texture binding targets, active texture units, shader program use, and
sampler binding to `pp_renderer_gl` through the shared retained bridge headers
instead of owning local raw OpenGL callbacks.
`NodeStrokePreview` brush preview rendering now delegates depth/scissor/blend
state, tested viewport/clear-color query dispatch, clear-color restore, active
texture unit execution, fallback 2D texture unbinds, 2D texture targets, copy
@@ -2585,6 +2587,11 @@ Results:
`legacy_gl_shader_dispatch`, removing duplicated raw shader/program/uniform
callback ownership from `src/shader.cpp` while shader-program ownership
remains retained under DEBT-0036.
- Retained `gl_state` save/restore and `copy_framebuffer_to_texture_target`
now reuse `legacy_ui_gl_dispatch`, `legacy_gl_framebuffer_dispatch`,
`legacy_gl_shader_dispatch`, and `legacy_gl_sampler_dispatch`, removing the
local raw state/copy callback cluster from `src/util.cpp` while renderer
state and framebuffer-copy execution remain retained under DEBT-0036.
- Canvas draw-merge shader-blend selection now consumes the extracted
`pp_paint_renderer` stroke composite planner for current layer and primary
brush blend modes, while preserving legacy OpenGL compositing execution under