EEVEE: Cleanup remove unused shader.
authormano-wii <germano.costa@ig.com.br>
Mon, 19 Nov 2018 10:55:59 +0000 (08:55 -0200)
committermano-wii <germano.costa@ig.com.br>
Mon, 19 Nov 2018 11:05:20 +0000 (09:05 -0200)
source/blender/draw/engines/eevee/eevee_materials.c

index d7d9649ad630d97acc5ab22640c4c94b1239d3fb..a87b46266282f0276082ded88e12b8060bbce97b 100644 (file)
@@ -58,7 +58,6 @@ static struct {
        struct GPUShader *default_hair_prepass_clip_sh;
        struct GPUShader *default_lit[VAR_MAT_MAX];
        struct GPUShader *default_background;
-       struct GPUShader *default_studiolight_background;
        struct GPUShader *update_noise_sh;
 
        /* 64*64 array texture containing all LUTs and other utilitarian arrays.
@@ -597,10 +596,6 @@ void EEVEE_materials_init(EEVEE_ViewLayerData *sldata, EEVEE_StorageList *stl, E
                        datatoc_background_vert_glsl, NULL, datatoc_default_world_frag_glsl,
                        NULL);
 
-               e_data.default_studiolight_background = DRW_shader_create(
-                       datatoc_background_vert_glsl, NULL, datatoc_default_world_frag_glsl,
-                       "#define LOOKDEV\n");
-
                e_data.default_prepass_sh = DRW_shader_create(
                        datatoc_prepass_vert_glsl, NULL, datatoc_prepass_frag_glsl,
                        NULL);
@@ -1799,7 +1794,6 @@ void EEVEE_materials_free(void)
        DRW_SHADER_FREE_SAFE(e_data.default_prepass_sh);
        DRW_SHADER_FREE_SAFE(e_data.default_prepass_clip_sh);
        DRW_SHADER_FREE_SAFE(e_data.default_background);
-       DRW_SHADER_FREE_SAFE(e_data.default_studiolight_background);
        DRW_SHADER_FREE_SAFE(e_data.update_noise_sh);
        DRW_TEXTURE_FREE_SAFE(e_data.util_tex);
        DRW_TEXTURE_FREE_SAFE(e_data.noise_tex);