From 4d3e95d7b5298d6057ec0203a41e4301c345fb99 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 13 Nov 2024 10:21:07 +0100 Subject: nvidia x11: fix black screen regression --- src/color_conversion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/color_conversion.c b/src/color_conversion.c index f3748b4..65f3775 100644 --- a/src/color_conversion.c +++ b/src/color_conversion.c @@ -327,7 +327,7 @@ void gsr_color_conversion_deinit(gsr_color_conversion *self) { static void gsr_color_conversion_swizzle_texture_source(gsr_color_conversion *self, gsr_source_color source_color) { if(source_color == GSR_SOURCE_COLOR_BGR) { - const int swizzle_mask[] = { GL_BLUE, GL_GREEN, GL_RED, GL_ALPHA }; + const int swizzle_mask[] = { GL_BLUE, GL_GREEN, GL_RED, 1 }; self->params.egl->glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_RGBA, swizzle_mask); } } -- cgit v1.2.3