diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2021-02-07 22:40:21 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2021-02-07 22:46:37 +0300 |
commit | bb05f6d33572e3e17f5298a6e792d529e2b77cb3 (patch) | |
tree | 64ca0216b649ad7d93a9f76d4c4af9522d7c2b5a /source/blender/gpu/intern/gpu_material_library.c | |
parent | 36b066ee9826b3f1218fcc49fd523d17efe77c32 (diff) |
EEVEE: Replace constant booleans by const float
This makes principled optimization easier and less verbose. Tests shows
no differences in performance.
Diffstat (limited to 'source/blender/gpu/intern/gpu_material_library.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_material_library.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_material_library.c b/source/blender/gpu/intern/gpu_material_library.c index c3a1fe027f6..64cd375d466 100644 --- a/source/blender/gpu/intern/gpu_material_library.c +++ b/source/blender/gpu/intern/gpu_material_library.c @@ -780,10 +780,6 @@ static void gpu_parse_material_library(GHash *hash, GPUMaterialLibrary *library) } } - /* TODO(fclem) This is only to avoid parsing error. Support is incomplete. */ - if (!type && BLI_str_startswith(code, "bool")) { - type = GPU_BOOL; - } if (!type && BLI_str_startswith(code, "samplerCube")) { type = GPU_TEXCUBE; } |