Set color range during texture creation

This prepares for the migration to SDL3, where the color range can only
be specified at the time of texture creation.
This commit is contained in:
Romain Vimont
2025-07-03 19:04:09 +02:00
parent 44761099eb
commit 1917f1c427
3 changed files with 40 additions and 36 deletions

View File

@@ -619,7 +619,8 @@ sc_screen_apply_frame(struct sc_screen *screen) {
}
enum sc_display_result res =
sc_display_set_texture_size(&screen->display, screen->frame_size);
sc_display_prepare_texture(&screen->display, screen->frame_size,
frame->color_range);
if (res == SC_DISPLAY_RESULT_ERROR) {
return false;
}