Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-02-20 02:13:48 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-02-20 02:13:48 +0300
commit0c01ad93004d6d973aae718e21b88595d6301fd2 (patch)
tree2a8dc735c6ccbcbcfc4c6264c67372d7b548cdfc /source/blender/draw
parent67cbce0b02f097e764c2f582adc868bb7fa37ee5 (diff)
Fix T74019 Eevee High Quality Normals causing pitch black faces
Was due to a mistake when removing previous code...
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_cache_extract_mesh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.c b/source/blender/draw/intern/draw_cache_extract_mesh.c
index edd7dee004c..88cb3f95f2e 100644
--- a/source/blender/draw/intern/draw_cache_extract_mesh.c
+++ b/source/blender/draw/intern/draw_cache_extract_mesh.c
@@ -1839,8 +1839,8 @@ static const MeshExtract extract_uv = {
static void extract_tan_ex(const MeshRenderData *mr, GPUVertBuf *vbo, const bool do_hq)
{
- GPUVertCompType comp_type = do_hq ? GPU_COMP_F32 : GPU_COMP_I10;
- GPUVertFetchMode fetch_mode = do_hq ? GPU_FETCH_FLOAT : GPU_FETCH_INT_TO_FLOAT_UNIT;
+ GPUVertCompType comp_type = do_hq ? GPU_COMP_I16 : GPU_COMP_I10;
+ GPUVertFetchMode fetch_mode = GPU_FETCH_INT_TO_FLOAT_UNIT;
GPUVertFormat format = {0};
GPU_vertformat_deinterleave(&format);