diff options
author | Iyad Ahmed <iyadahmed2001> | 2022-03-14 21:50:17 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-03-14 22:06:32 +0300 |
commit | fc259d4c30cba9427b81e66c777b3f165f7ea5ac (patch) | |
tree | d63a2b9a3603da0bf5c34caa22b999aafa1b8d77 /source/blender/python | |
parent | d4e46c13cc92e01489a031a6afe6bafb5af5ca18 (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
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/gpu/gpu_py_texture.c | 2 |
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( |