nvidia x11: fix black screen regression

This commit is contained in:
dec05eba
2024-11-13 10:21:07 +01:00
parent 1ff38c2699
commit 4d3e95d7b5
2 changed files with 4 additions and 2 deletions

2
TODO
View File

@@ -189,3 +189,5 @@ Support application audio recording without pulseaudio combined sink.
Support transposing (rotating) with vaapi. This isn't supported on many devices with rgb buffer, but its supported with nv12 buffer (on intel at least).
Cleanup pipewire_audio.c (proper error handling and memory cleanup of proxies).
Hide application audio module-null-sink by using sink_properties=media.class="Audio/Sink/Internal".

View File

@@ -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);
}
}