[vlc-commits] [Git][videolan/vlc][master] opengl/sw: don't handle RGB+x as RGB+alpha

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Oct 3 06:49:19 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
e34d36a0 by Steve Lhomme at 2023-10-03T06:28:41+00:00
opengl/sw: don't handle RGB+x as RGB+alpha

The alpha component value will be undefined but treated as an actual
alpha value.

- - - - -


1 changed file:

- modules/video_output/opengl/interop_sw.c


Changes:

=====================================
modules/video_output/opengl/interop_sw.c
=====================================
@@ -619,13 +619,11 @@ interop_rgb_base_init(struct vlc_gl_interop *interop, GLenum tex_target,
             break;
 #endif
 
-        case VLC_CODEC_XRGB:
         case VLC_CODEC_RGBA:
             interop->texs[0] = (struct vlc_gl_tex_cfg) {
                 { 1, 1 }, { 1, 1 }, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE
             };
             break;
-        case VLC_CODEC_BGRX:
         case VLC_CODEC_BGRA: {
             if (vlc_gl_interop_GetTexFormatSize(interop, tex_target, GL_BGRA, GL_RGBA,
                                                 GL_UNSIGNED_BYTE) != 32)



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e34d36a07a5ed042b46de489114f7e12d663a0f7

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e34d36a07a5ed042b46de489114f7e12d663a0f7
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list