mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-07 19:30:12 +00:00
Merge branch 'dont-claim-external-formats' into 'main'
dmabuf: We don't support external formats on GL See merge request GNOME/gtk!6516
This commit is contained in:
commit
65993ed0e0
@ -106,8 +106,11 @@ gdk_dmabuf_egl_downloader_add_formats (const GdkDmabufDownloader *downloader,
|
|||||||
(char *) &fourccs[i],
|
(char *) &fourccs[i],
|
||||||
modifiers[j]);
|
modifiers[j]);
|
||||||
|
|
||||||
/* All linear formats we support are already added my the mmap downloader */
|
/* All linear formats we support are already added my the mmap downloader.
|
||||||
if (modifiers[j] != DRM_FORMAT_MOD_LINEAR)
|
* We don't add external formats, unless we can use them (via GLES)
|
||||||
|
*/
|
||||||
|
if (modifiers[j] != DRM_FORMAT_MOD_LINEAR &&
|
||||||
|
(!external_only[j] || gdk_gl_context_get_use_es (context)))
|
||||||
gdk_dmabuf_formats_builder_add_format (builder, fourccs[i], modifiers[j]);
|
gdk_dmabuf_formats_builder_add_format (builder, fourccs[i], modifiers[j]);
|
||||||
if (external_only[j])
|
if (external_only[j])
|
||||||
gdk_dmabuf_formats_builder_add_format (external, fourccs[i], modifiers[j]);
|
gdk_dmabuf_formats_builder_add_format (external, fourccs[i], modifiers[j]);
|
||||||
|
Loading…
Reference in New Issue
Block a user