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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user