Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-04-05 13:53:26 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-04-05 15:40:54 +0300
commit6de0da70de303d6510564bc745a72b7c8a04d929 (patch)
treeadf2d2ae79bb759b909c89d9f864c296d45f6998 /source
parentf0d6879f5c7998be98ac406bd6ddaa5104961206 (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')
-rw-r--r--source/blender/gpu/intern/gpu_texture.c2
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) {