mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
[881/906] upload: restore default values for unpack_length
fixes elements that upload a supplementary texture (glbumber, gldifferencematte, etc)
This commit is contained in:
parent
10f18a151e
commit
6c594a0b15
1 changed files with 12 additions and 0 deletions
|
@ -1518,6 +1518,18 @@ _do_upload_fill (GstGLContext * context, GstGLUpload * upload)
|
||||||
tex[i].format, tex[i].type, upload->data[data_i]);
|
tex[i].format, tex[i].type, upload->data[data_i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset to default values */
|
||||||
|
#if GST_GL_HAVE_OPENGL || GST_GL_HAVE_GLES3
|
||||||
|
if (USING_OPENGL (context) || USING_GLES3 (context)) {
|
||||||
|
gl->PixelStorei (GL_UNPACK_ROW_LENGTH, 0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#if GST_GL_HAVE_GLES2
|
||||||
|
if (USING_GLES2 (context)) {
|
||||||
|
gl->PixelStorei (GL_UNPACK_ALIGNMENT, 4);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* make sure no texture is in use in our opengl context
|
/* make sure no texture is in use in our opengl context
|
||||||
* in case we want to use the upload texture in an other opengl context
|
* in case we want to use the upload texture in an other opengl context
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue