Commit e620cf32 authored by Matthew Waters's avatar Matthew Waters
Browse files
parent d4d1ae95
......@@ -525,10 +525,12 @@ gst_gl_memory_texsubimage (GstGLMemory * gl_mem, gpointer read_pointer)
gl = context->gl_vtable;
gl_type = GL_UNSIGNED_BYTE;
if (gl_mem->tex_format == GST_GL_RGB565)
gl_format = gl_mem->tex_format;
if (gl_mem->tex_format == GST_GL_RGB565) {
gl_format = GST_GL_RGB;
gl_type = GL_UNSIGNED_SHORT_5_6_5;
}
gl_format = gl_mem->tex_format;
gl_target = gst_gl_texture_target_to_gl (gl_mem->tex_target);
if (USING_OPENGL (context) || USING_GLES3 (context)
......
Markdown is supported
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