From c15e5af60e0e484d8ad36cc84e486da82ef17a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Mon, 15 Jun 2020 13:03:13 +0200 Subject: [PATCH] Fix wrong internal format for half-float textures --- drivers/gles3/rasterizer_storage_gles3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index b1e6d28b2c5..5ff8028eed0 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -244,24 +244,24 @@ Ref RasterizerStorageGLES3::_get_gl_image_and_format(const Ref &p_ } break; case Image::FORMAT_RH: { - r_gl_internal_format = GL_R32F; + r_gl_internal_format = GL_R16F; r_gl_format = GL_RED; r_gl_type = GL_HALF_FLOAT; } break; case Image::FORMAT_RGH: { - r_gl_internal_format = GL_RG32F; + r_gl_internal_format = GL_RG16F; r_gl_format = GL_RG; r_gl_type = GL_HALF_FLOAT; } break; case Image::FORMAT_RGBH: { - r_gl_internal_format = GL_RGB32F; + r_gl_internal_format = GL_RGB16F; r_gl_format = GL_RGB; r_gl_type = GL_HALF_FLOAT; } break; case Image::FORMAT_RGBAH: { - r_gl_internal_format = GL_RGBA32F; + r_gl_internal_format = GL_RGBA16F; r_gl_format = GL_RGBA; r_gl_type = GL_HALF_FLOAT;