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:
authorCampbell Barton <ideasman42@gmail.com>2015-05-21 01:08:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-21 01:48:21 +0300
commit2b0613b948c2de2d31044ee4f8f82463732b1f15 (patch)
tree28115d6d77efd943e7ed5381ec12ee2e21d1c33a /source/blender/gpu/intern/gpu_material.c
parent148ed4e05eafd3642d7f8f16f7c28a2267bcf4b8 (diff)
Fix: GPU_shader_export fails /w some lamp attrs
first/last vars missed some values. D1309 by @NHA
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r--source/blender/gpu/intern/gpu_material.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index 774dee9ebc2..bd17fb0b1aa 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -2305,7 +2305,7 @@ GPUShaderExport *GPU_shader_export(struct Scene *scene, struct Material *ma)
break;
}
- if (uniform->type >= GPU_DYNAMIC_LAMP_FIRST && uniform->type <= GPU_DYNAMIC_LAMP_LAST)
+ if (GPU_DYNAMIC_GROUP_FROM_TYPE(uniform->type) == GPU_DYNAMIC_GROUP_LAMP)
uniform->lamp = input->dynamicdata;
}