|
2 | 2 | * This file is part of AtomGL. |
3 | 3 | * |
4 | 4 | * Copyright 2026 AtomGL contributors |
| 5 | + * Copyright 2026 Ibrahim YILMAZ <ibrahim@drlinux.org> |
5 | 6 | * |
6 | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
7 | 8 | * you may not use this file except in compliance with the License. |
@@ -528,11 +529,12 @@ static void do_update_region(Context *ctx, int x0, int y0, int width, int height |
528 | 529 | memcpy(driver->framebuffers[work_fb], active_fb, fb_bytes); |
529 | 530 | } |
530 | 531 | if (render_items_to_framebuffer(driver, work_fb, x0, y0, width, height, items, len)) { |
531 | | - esp_err_t err = switch_to_framebuffer(driver, work_fb); |
532 | | - if (err != ESP_OK) { |
533 | | - ESP_LOGE(TAG, "region framebuffer switch failed: %s", esp_err_to_name(err)); |
534 | | - } else { |
535 | | - mirror_region_from_active_to_inactive_framebuffers(driver, x0, y0, width, height); |
| 532 | + esp_err_t err = switch_to_framebuffer(driver, work_fb); |
| 533 | + if (err != ESP_OK) { |
| 534 | + ESP_LOGE(TAG, "region framebuffer switch failed: %s", esp_err_to_name(err)); |
| 535 | + } else { |
| 536 | + mirror_region_from_active_to_inactive_framebuffers(driver, x0, y0, width, height); |
| 537 | + } |
536 | 538 | } |
537 | 539 | } |
538 | 540 | display_items_delete(items, len); |
|
0 commit comments