diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-11-01 18:17:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-11-01 18:17:33 +0300 |
commit | 40adf486d7d35c24ae24b321d0f54564d8ec51aa (patch) | |
tree | dc65109632e392f53c61ac1b05406295cebfdbd6 /source/blender/draw | |
parent | 2fbbc8c64390ea825c9fca86cd90968f74d96865 (diff) |
Eevee: Do not allocate minz buffer.
It's not needed for now.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_effects.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c index d535014212d..a01ba6a3acf 100644 --- a/source/blender/draw/engines/eevee/eevee_effects.c +++ b/source/blender/draw/engines/eevee/eevee_effects.c @@ -136,15 +136,10 @@ void EEVEE_effects_init(EEVEE_SceneLayerData *sldata, EEVEE_Data *vedata) /** * MinMax Pyramid */ - DRWFboTexture texmin = {&stl->g_data->minzbuffer, DRW_TEX_DEPTH_24, DRW_TEX_MIPMAP | DRW_TEX_TEMP}; + DRWFboTexture texmax = {&txl->maxzbuffer, DRW_TEX_DEPTH_24, DRW_TEX_MIPMAP}; DRW_framebuffer_init(&fbl->downsample_fb, &draw_engine_eevee_type, (int)viewport_size[0] / 2, (int)viewport_size[1] / 2, - &texmin, 1); - - /* Cannot define 2 depth texture for one framebuffer. So allocate ourself. */ - if (txl->maxzbuffer == NULL) { - txl->maxzbuffer = DRW_texture_create_2D((int)viewport_size[0] / 2, (int)viewport_size[1] / 2, DRW_TEX_DEPTH_24, DRW_TEX_MIPMAP, NULL); - } + &texmax, 1); /** * Compute Mipmap texel alignement. |