diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-03-18 03:26:08 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-03-18 03:56:34 +0300 |
commit | c4644b484d30d7dee62425a18d6896acf6fcbb0c (patch) | |
tree | 7a8b15f6a1a4739d750c00f24c81fb1261c89042 /source/blender/gpu/intern/gpu_viewport.c | |
parent | b7355425cdff8f3f23e386f2817d5702b46f7bd6 (diff) |
GPUTexture: Add support for depth_stencil textures.
Diffstat (limited to 'source/blender/gpu/intern/gpu_viewport.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_viewport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_viewport.c b/source/blender/gpu/intern/gpu_viewport.c index fc5c3ce3613..8f0a38c8675 100644 --- a/source/blender/gpu/intern/gpu_viewport.c +++ b/source/blender/gpu/intern/gpu_viewport.c @@ -214,7 +214,7 @@ void GPU_viewport_bind(GPUViewport *viewport, const rcti *rect) } /* Depth */ - dtxl->depth = GPU_texture_create_depth(rect_w, rect_h, NULL); + dtxl->depth = GPU_texture_create_depth_with_stencil(rect_w, rect_h, NULL); if (!dtxl->depth) { ok = false; goto cleanup; |