Color management: Avoid memory copy into same buffer

This commit is contained in:
Sergey Sharybin 2017-04-12 10:23:38 +02:00
parent 0ebe08af34
commit c29bc61829
1 changed files with 1 additions and 1 deletions

View File

@ -1406,7 +1406,7 @@ static void *do_display_buffer_apply_thread(void *handle_v)
bool is_data = handle->is_data;
if (cm_processor == NULL) {
if (display_buffer_byte) {
if (display_buffer_byte && display_buffer_byte != handle->byte_buffer) {
IMB_buffer_byte_from_byte(display_buffer_byte, handle->byte_buffer, IB_PROFILE_SRGB, IB_PROFILE_SRGB,
false, width, height, width, width);
}