Skip to content
Snippets Groups Projects
Commit 0f8ace22 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Jean-Baptiste Kempf
Browse files

opengl: interop: fix P010 texture configuration

The interop texture configuration for P010 was not matching the one
removed in 4bc8c7c8. In particular:

 - type must be GL_UNSIGNED_SHORT since we're using 16bit values.
 - chroma plane are 1/2 size of luma both in width and height.

Regression from c344522f.

Fixes #27101
parent 3172b2e3
No related branches found
No related tags found
1 merge request!2151opengl: interop: fix P010 texture configuration
Pipeline #236642 passed with stage
in 16 minutes and 12 seconds
......@@ -308,14 +308,14 @@ Open(vlc_object_t *obj)
.h = {1, 1},
.internal = GL_R16,
.format = GL_RED,
.type = GL_UNSIGNED_BYTE,
.type = GL_UNSIGNED_SHORT,
};
interop->texs[1] = (struct vlc_gl_tex_cfg) {
.w = {1, 1},
.w = {1, 2},
.h = {1, 2},
.internal = GL_RG16,
.format = GL_RG,
.type = GL_UNSIGNED_BYTE,
.type = GL_UNSIGNED_SHORT,
};
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment