Route RTT texture updates through GL backend

This commit is contained in:
2026-06-04 23:44:25 +02:00
parent c9fb91ab48
commit 111cc8c892
11 changed files with 115 additions and 44 deletions

View File

@@ -832,6 +832,8 @@ pp::foundation::Status update_opengl_texture_2d(
}
if (update.texture_id == 0U
|| update.x < 0
|| update.y < 0
|| update.width <= 0
|| update.height <= 0
|| update.pixel_format == 0U
@@ -844,8 +846,8 @@ pp::foundation::Status update_opengl_texture_2d(
dispatch.tex_sub_image_2d(
texture_2d_target(),
0,
0,
0,
update.x,
update.y,
update.width,
update.height,
update.pixel_format,

View File

@@ -142,6 +142,8 @@ struct OpenGlTextureCubeAllocation {
struct OpenGlTexture2DUpdate {
std::uint32_t texture_id = 0;
std::int32_t x = 0;
std::int32_t y = 0;
std::int32_t width = 0;
std::int32_t height = 0;
std::uint32_t pixel_format = 0;