[Bf-blender-cvs] [fc259d4c30c] master: Fix gpu.types.GPUTexture not passing data buffer to 3D textures

Iyad Ahmed noreply at git.blender.org
Mon Mar 14 20:07:30 CET 2022


Commit: fc259d4c30cba9427b81e66c777b3f165f7ea5ac
Author: Iyad Ahmed
Date:   Mon Mar 14 15:50:17 2022 -0300
Branches: master
https://developer.blender.org/rBfc259d4c30cba9427b81e66c777b3f165f7ea5ac

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

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

M	source/blender/python/gpu/gpu_py_texture.c

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

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(



More information about the Bf-blender-cvs mailing list