[Bf-blender-cvs] [cad1ddc1e8e] blender-v2.83-release: GPU: Fix typo making RG16F use 16 bytes instead of 4

Clément Foucault noreply at git.blender.org
Fri Apr 17 20:43:14 CEST 2020


Commit: cad1ddc1e8ed68c1727bf614efdcccc76f569029
Author: Clément Foucault
Date:   Fri Apr 17 20:28:55 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBcad1ddc1e8ed68c1727bf614efdcccc76f569029

GPU: Fix typo making RG16F use 16 bytes instead of 4

===================================================================

M	source/blender/gpu/intern/gpu_texture.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c
index 8858153f159..6d2d0f09a42 100644
--- a/source/blender/gpu/intern/gpu_texture.c
+++ b/source/blender/gpu/intern/gpu_texture.c
@@ -464,7 +464,7 @@ static GLenum gpu_format_to_gl_internalformat(eGPUTextureFormat format)
     case GPU_RG16I:
       return GL_RG16I;
     case GPU_RG16F:
-      return GL_RGBA32F;
+      return GL_RG16F;
     case GPU_RG16:
       return GL_RG16;
     case GPU_R8UI:



More information about the Bf-blender-cvs mailing list