diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-04-05 13:53:26 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-04-05 15:40:54 +0300 |
commit | 6de0da70de303d6510564bc745a72b7c8a04d929 (patch) | |
tree | adf2d2ae79bb759b909c89d9f864c296d45f6998 /source/blender/gpu/intern/gpu_texture.c | |
parent | f0d6879f5c7998be98ac406bd6ddaa5104961206 (diff) |
GPU not able to allocate texture
In the case of the report a GL_PROXY_TEXTURE_2D_ARRAY of 2509x2509x1 failed to be allocated.
This is a work around as the GL_PROXY_TEXTURE_* is not reliable.
Reviewed By: brecht, fclem
Maniphest Tasks: T63223
Differential Revision: https://developer.blender.org/D4651
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 8aafe349be8..3ce42ce1d31 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -661,7 +661,7 @@ GPUTexture *GPU_texture_create_nD( GLenum proxy = GL_PROXY_TEXTURE_2D; if (n == 2) { - if (d > 0) + if (d > 1) proxy = GL_PROXY_TEXTURE_2D_ARRAY; } else if (n == 1) { |