Route paint texture unit binding through GL backend

This commit is contained in:
2026-06-04 22:08:46 +02:00
parent 4c61a490ce
commit abe3a86cc5
9 changed files with 169 additions and 32 deletions

View File

@@ -503,6 +503,18 @@ pp::foundation::Status clear_opengl_color_buffer_with_write_mask(
return pp::foundation::Status::success();
}
pp::foundation::Status activate_opengl_texture_unit(
std::uint32_t unit_index,
OpenGlActiveTextureDispatch dispatch) noexcept
{
if (dispatch.active_texture == nullptr) {
return pp::foundation::Status::invalid_argument("OpenGL active texture dispatch callback must not be null");
}
dispatch.active_texture(active_texture_unit(unit_index));
return pp::foundation::Status::success();
}
pp::foundation::Status apply_opengl_viewport(
OpenGlViewportRect viewport,
OpenGlViewportDispatch dispatch) noexcept