diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-10-25 23:13:46 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-10-26 11:54:21 +0300 |
commit | 70d73ff5007c817c6c7fedbfceea2fc1641f60b5 (patch) | |
tree | 65a552dab30ea3fbfa0889238ea359d87449932a /source/blender/gpu/intern/gpu_texture.c | |
parent | d5fe6e47850311e10a1ae1663693018634c83e84 (diff) |
Eevee: SSS: Fix issue with mac and stencil buffer blitting
Adding a workaround in this case: we blit the depth buffer instead of the
stencil buffer and use the copy as the texture. This is slower but at
least it should work.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index 7119fdb423b..4641bde74b9 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -55,7 +55,7 @@ static struct GPUTextureGlobal { } GG = {NULL, NULL, NULL}; /* Maximum number of FBOs a texture can be attached to. */ -#define GPU_TEX_MAX_FBO_ATTACHED 9 +#define GPU_TEX_MAX_FBO_ATTACHED 10 typedef enum GPUTextureFormatFlag { GPU_FORMAT_DEPTH = (1 << 0), |