[Bf-blender-cvs] [6de0da70de3] master: GPU not able to allocate texture

Jeroen Bakker noreply at git.blender.org
Fri Apr 5 14:43:12 CEST 2019


Commit: 6de0da70de303d6510564bc745a72b7c8a04d929
Author: Jeroen Bakker
Date:   Fri Apr 5 12:53:26 2019 +0200
Branches: master
https://developer.blender.org/rB6de0da70de303d6510564bc745a72b7c8a04d929

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

===================================================================

M	source/blender/gpu/intern/gpu_texture.c

===================================================================

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) {



More information about the Bf-blender-cvs mailing list