mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-27 01:05:59 +01:00
12cb109137
* this fix it most important for laptops with dgpu * remove post patch line wlroots.nix Signed-off-by: Gonçalo Duarte <gonegrier.duarte@gmail.com>
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
|
|
index 9fe934f7..9662d4ee 100644
|
|
--- a/render/gles2/renderer.c
|
|
+++ b/render/gles2/renderer.c
|
|
@@ -176,7 +176,7 @@ static bool gles2_bind_buffer(struct wlr_renderer *wlr_renderer,
|
|
assert(wlr_egl_is_current(renderer->egl));
|
|
|
|
push_gles2_debug(renderer);
|
|
- glFlush();
|
|
+ glFinish();
|
|
glBindFramebuffer(GL_FRAMEBUFFER, 0);
|
|
pop_gles2_debug(renderer);
|
|
|
|
diff --git a/types/output/render.c b/types/output/render.c
|
|
index 2e38919a..97f78608 100644
|
|
--- a/types/output/render.c
|
|
+++ b/types/output/render.c
|
|
@@ -240,22 +240,7 @@ bool output_pick_format(struct wlr_output *output,
|
|
}
|
|
|
|
uint32_t wlr_output_preferred_read_format(struct wlr_output *output) {
|
|
- struct wlr_renderer *renderer = output->renderer;
|
|
- assert(renderer != NULL);
|
|
-
|
|
- if (!renderer->impl->preferred_read_format || !renderer->impl->read_pixels) {
|
|
- return DRM_FORMAT_INVALID;
|
|
- }
|
|
-
|
|
- if (!wlr_output_attach_render(output, NULL)) {
|
|
- return false;
|
|
- }
|
|
-
|
|
- uint32_t fmt = renderer->impl->preferred_read_format(renderer);
|
|
-
|
|
- output_clear_back_buffer(output);
|
|
-
|
|
- return fmt;
|
|
+ return DRM_FORMAT_XRGB8888;
|
|
}
|
|
|
|
struct wlr_render_pass *wlr_output_begin_render_pass(struct wlr_output *output,
|