mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 14:04:20 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user