Alpha-textures are supported on GLES, unlike on OpenGL core profiles. So we need to check for the difference here, otherwise we get textures uploaded as alpha-textures, and then attempted swizzled as if they were emulated as red-textures. This fixes the following dEQP test-cases: dEQP-GLES31.functional.texture.border_clamp.formats.alpha.nearest_size_pot dEQP-GLES31.functional.texture.border_clamp.formats.alpha.nearest_size_npot dEQP-GLES31.functional.texture.border_clamp.formats.alpha.linear_size_pot dEQP-GLES31.functional.texture.border_clamp.formats.alpha.linear_size_npot dEQP-GLES31.functional.texture.border_clamp.unused_channels.alpha Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>macos/master
parent
0d6a2439ee
commit
4553faf23a
Loading…
Reference in new issue