Commit 82b6190e authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

opengl: interop: add support for RGB24

Fix #25077
parent 467c01b3
......@@ -314,6 +314,12 @@ interop_rgb_base_init(struct vlc_gl_interop *interop, GLenum tex_target,
switch (chroma)
{
case VLC_CODEC_RGB24:
interop->texs[0] = (struct vlc_gl_tex_cfg) {
{ 1, 1 }, { 1, 1 }, GL_RGB, GL_RGB, GL_UNSIGNED_BYTE
};
break;
case VLC_CODEC_RGB32:
case VLC_CODEC_RGBA:
interop->texs[0] = (struct vlc_gl_tex_cfg) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment