[Bf-blender-cvs] [ff11750ee99] temp-eeveelightcache: GPUTexture: Fix GPU_texture_read for depth stencil format

Clément Foucault noreply at git.blender.org
Mon Jul 9 23:03:57 CEST 2018


Commit: ff11750ee9925d2c75193e1e7cbaccec86855fa8
Author: Clément Foucault
Date:   Mon Jul 9 22:33:29 2018 +0200
Branches: temp-eeveelightcache
https://developer.blender.org/rBff11750ee9925d2c75193e1e7cbaccec86855fa8

GPUTexture: Fix GPU_texture_read for depth stencil format

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

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 6bed59cef04..a85a9a9bac3 100644
--- a/source/blender/gpu/intern/gpu_texture.c
+++ b/source/blender/gpu/intern/gpu_texture.c
@@ -1086,9 +1086,9 @@ void *GPU_texture_read(GPUTexture *tex, GPUDataFormat gpu_data_format, int miplv
 			break;
 		case GPU_DATA_INT:
 		case GPU_DATA_UNSIGNED_INT:
-		case GPU_DATA_UNSIGNED_INT_24_8:
 			buf_size = sizeof(int) * samples_count * tex->components;
 			break;
+		case GPU_DATA_UNSIGNED_INT_24_8:
 		case GPU_DATA_10_11_11_REV:
 			buf_size = sizeof(int) * samples_count;
 			break;



More information about the Bf-blender-cvs mailing list