GPUTexture: Add for stencil to default depth buffers.

Theses will be used by eevee SSS.

TODO: only allocate stencil if needed.
This commit is contained in:
2017-11-13 23:25:46 +01:00
parent ab013224ad
commit 93936b8643
4 changed files with 10 additions and 3 deletions

View File

@@ -670,7 +670,7 @@ GPUOffScreen *GPU_offscreen_create(int width, int height, int samples, char err_
}
}
ofs->depth = GPU_texture_create_depth_multisample(width, height, samples, err_out);
ofs->depth = GPU_texture_create_depth_with_stencil_multisample(width, height, samples, err_out);
if (!ofs->depth) {
GPU_offscreen_free(ofs);
return NULL;