From a41a32cb9079dc3c78414b7b0cdc68243333020d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 29 Mar 2025 13:27:20 +0100 Subject: WIP: use compute shader instead of graphics shader for better performance (especially on amd) --- src/capture/ximage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/capture/ximage.c') diff --git a/src/capture/ximage.c b/src/capture/ximage.c index 259761d..ac00d72 100644 --- a/src/capture/ximage.c +++ b/src/capture/ximage.c @@ -160,7 +160,7 @@ static int gsr_capture_ximage_capture(gsr_capture *cap, gsr_capture_metadata *ca gsr_color_conversion_draw(color_conversion, self->texture_id, target_pos, output_size, (vec2i){0, 0}, self->capture_size, - 0.0f, false, GSR_SOURCE_COLOR_RGB); + GSR_ROT_0, false, GSR_SOURCE_COLOR_RGB); if(self->params.record_cursor && self->cursor.visible) { const vec2d scale = { @@ -181,7 +181,7 @@ static int gsr_capture_ximage_capture(gsr_capture *cap, gsr_capture_metadata *ca gsr_color_conversion_draw(color_conversion, self->cursor.texture_id, cursor_pos, (vec2i){self->cursor.size.x * scale.x, self->cursor.size.y * scale.y}, (vec2i){0, 0}, self->cursor.size, - 0.0f, false, GSR_SOURCE_COLOR_RGB); + GSR_ROT_0, false, GSR_SOURCE_COLOR_RGB); self->params.egl->glDisable(GL_SCISSOR_TEST); } -- cgit v1.2.3-70-g09d2