- 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user