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
diff options
context:
space:
mode:
authorIyad Ahmed <iyadahmed2001>2022-03-14 21:50:17 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2022-03-14 22:06:32 +0300
commitfc259d4c30cba9427b81e66c777b3f165f7ea5ac (patch)
treed63a2b9a3603da0bf5c34caa22b999aafa1b8d77
parentd4e46c13cc92e01489a031a6afe6bafb5af5ca18 (diff)
Fix gpu.types.GPUTexture not passing data buffer to 3D textures
Missed in rB4430e8a00810ca8df2fa20029c4cb8078e8cdbe6 Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D14333
-rw-r--r--source/blender/python/gpu/gpu_py_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/gpu/gpu_py_texture.c b/source/blender/python/gpu/gpu_py_texture.c
index 0ad55aeac78..59896dbca2a 100644
--- a/source/blender/python/gpu/gpu_py_texture.c
+++ b/source/blender/python/gpu/gpu_py_texture.c
@@ -223,7 +223,7 @@ static PyObject *pygpu_texture__tp_new(PyTypeObject *UNUSED(self), PyObject *arg
1,
pygpu_textureformat.value_found,
GPU_DATA_FLOAT,
- NULL);
+ data);
}
else if (len == 2) {
tex = GPU_texture_create_2d(