From 96e9debe1fbfcd114abf2c78b00a3a690ad205b6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 12 Oct 2008 13:32:28 +0000 Subject: - 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. --- source/blender/gpu/intern/gpu_material.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/gpu') 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) -- cgit v1.2.3