diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-12 20:40:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 20:40:52 +0200 |
commit | 677ccb90efe3c1fcf3aff595e52258ef869a6a8e (patch) | |
tree | d0bb3bcf0fc769182208e077387b6af89f05f78b | |
parent | 44c55ad59b01dbf360777b1a9a18a229aeb1f4f7 (diff) | |
parent | 05f351b215fdeb5d9dab0e04ec1abc0d17475377 (diff) |
Merge pull request #65709 from clayjohn/GLES3-render-target-type
Use proper color type for transparent render targets in GLES3
-rw-r--r-- | drivers/gles3/storage/texture_storage.cpp | 2 |
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); |