opengl: Do not convert format with glTexImage2D on OpenGL ES
commit14c235eb40eb82e0d7e89601b1a47028fe24deca
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Fri, 19 Feb 2021 09:48:03 +0000 (19 18:48 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 15 Mar 2021 16:37:49 +0000 (15 17:37 +0100)
treea01ae60d3aa23a55d3d7fea7c2580380ce037a79
parentc47c0bcb33e154b82b4f6b90984aba998fcc4f18
opengl: Do not convert format with glTexImage2D on OpenGL ES

OpenGL ES does not support conversion from the given data format
to the internal format with glTexImage2D.

Use the given data format as the internal format, and ignore
the given alpha channels with GL_TEXTURE_SWIZZLE_A in case the
format contains alpha channels.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210219094803.90860-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console-gl.c