diff --git a/libweston/renderer-gl/gl-renderer.c b/libweston/renderer-gl/gl-renderer.c index 53072216..e0047882 100644 --- a/libweston/renderer-gl/gl-renderer.c +++ b/libweston/renderer-gl/gl-renderer.c @@ -2522,7 +2522,7 @@ choose_texture_target(struct gl_renderer *gr, for (i = 0; i < format->num_modifiers; ++i) { if (format->modifiers[i] == attributes->modifier[0]) { - if(format->external_only[i]) + if (format->external_only[i]) return GL_TEXTURE_EXTERNAL_OES; else return GL_TEXTURE_2D; @@ -2530,9 +2530,6 @@ choose_texture_target(struct gl_renderer *gr, } } - if (attributes->n_planes > 1) - return GL_TEXTURE_EXTERNAL_OES; - switch (attributes->format & ~DRM_FORMAT_BIG_ENDIAN) { case DRM_FORMAT_YUYV: case DRM_FORMAT_YVYU: