aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2019-04-13 08:39:35 -0700
committerGitHub <noreply@github.com>2019-04-13 08:39:35 -0700
commitba9ecaed6fb275a1e30521c7106d0223dc081208 (patch)
treeab45b147d5fb4ec2ed0bf0cec98a0533bf38cb0b
parent92c12ca65dc7876a5d9e8e27d64454d28dbfe368 (diff)
parent11dc886a65c42e7fe0b43c4154640c1fe05f1434 (diff)
Merge pull request #15884 from lrusak/eglimage-linear
CEGLImage: don't add modifiers if they are just linear
-rw-r--r--xbmc/utils/EGLImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/EGLImage.cpp b/xbmc/utils/EGLImage.cpp
index 4f07aa6692..7e3d50f425 100644
--- a/xbmc/utils/EGLImage.cpp
+++ b/xbmc/utils/EGLImage.cpp
@@ -83,7 +83,7 @@ bool CEGLImage::CreateImage(EglAttrs imageAttrs)
{eglDmabufPlanePitchAttr[i], imageAttrs.planes[i].pitch}});
#if defined(EGL_EXT_image_dma_buf_import_modifiers)
- if (imageAttrs.planes[i].modifier != DRM_FORMAT_MOD_INVALID)
+ if (imageAttrs.planes[i].modifier != DRM_FORMAT_MOD_INVALID && imageAttrs.planes[i].modifier != DRM_FORMAT_MOD_LINEAR)
attribs.Add({{eglDmabufPlaneModifierLoAttr[i], static_cast<EGLint>(imageAttrs.planes[i].modifier & 0xFFFFFFFF)},
{eglDmabufPlaneModifierHiAttr[i], static_cast<EGLint>(imageAttrs.planes[i].modifier >> 32)}});
#endif