Draw Manager: Make use of texture reuse.

This commit is contained in:
2017-05-16 03:03:58 +02:00
parent 7a029f4e00
commit 2e8cb8d836
13 changed files with 116 additions and 86 deletions

View File

@@ -137,7 +137,7 @@ static void BASIC_engine_init(void *vedata)
if (DRW_state_is_fbo()) {
const float *viewport_size = DRW_viewport_size_get();
DRWFboTexture tex = {&txl->depth_dup, DRW_BUF_DEPTH_24, 0};
DRW_framebuffer_init(&fbl->dupli_depth,
DRW_framebuffer_init(&fbl->dupli_depth, &draw_engine_basic_type,
(int)viewport_size[0], (int)viewport_size[1],
&tex, 1);
}