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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-10-12 17:32:28 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-10-12 17:32:28 +0400
commit96e9debe1fbfcd114abf2c78b00a3a690ad205b6 (patch)
tree4f54f063e251cae0927968ddcbbd04e9d56d6f11 /source/blender/gpu
parent23a02bbead6d423bba1226bd84d4b2248af7ad39 (diff)
- Fix for bug #17825: baking SSS is not supported, but it didn't give
proper results, should bake as if SSS was disabled. - Fix for GLSL to handle failing shadow buffer creation better. - Fix for sky/atmosphere version patch, was not doing files from 2.46 and newer.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_material.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index db6117d854b..46df003cbbc 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -1362,10 +1362,14 @@ static void gpu_lamp_from_blender(Scene *scene, Object *ob, Object *par, Lamp *l
static void gpu_lamp_shadow_free(GPULamp *lamp)
{
- if(lamp->tex)
+ if(lamp->tex) {
GPU_texture_free(lamp->tex);
- if(lamp->fb)
+ lamp->tex= NULL;
+ }
+ if(lamp->fb) {
GPU_framebuffer_free(lamp->fb);
+ lamp->fb= NULL;
+ }
}
GPULamp *GPU_lamp_from_blender(Scene *scene, Object *ob, Object *par)