summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2022-09-12 08:19:03 -0700
committerclayjohn <claynjohn@gmail.com>2022-09-12 08:19:03 -0700
commit05f351b215fdeb5d9dab0e04ec1abc0d17475377 (patch)
tree61d289e061ed03830db95762c8ea98ae024e8c46 /drivers/gles3
parentdbab737798e2f3d35370c3504ab3c57e6cc0d020 (diff)
Use proper color type for transparent render targets in GLES3
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/storage/texture_storage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/storage/texture_storage.cpp b/drivers/gles3/storage/texture_storage.cpp
index b8ab4d6839..a801b3285a 100644
--- a/drivers/gles3/storage/texture_storage.cpp
+++ b/drivers/gles3/storage/texture_storage.cpp
@@ -1199,7 +1199,7 @@ void TextureStorage::_update_render_target(RenderTarget *rt) {
rt->color_internal_format = rt->is_transparent ? GL_RGBA8 : GL_RGB10_A2;
rt->color_format = GL_RGBA;
- rt->color_type = rt->is_transparent ? GL_BYTE : GL_UNSIGNED_INT_2_10_10_10_REV;
+ rt->color_type = rt->is_transparent ? GL_UNSIGNED_BYTE : GL_UNSIGNED_INT_2_10_10_10_REV;
rt->image_format = Image::FORMAT_RGBA8;
glDisable(GL_SCISSOR_TEST);