- 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.
This commit is contained in:
2008-10-12 13:32:28 +00:00
parent 23a02bbead
commit 96e9debe1f
5 changed files with 32 additions and 22 deletions

View File

@@ -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)