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
This commit is contained in:
Iyad Ahmed 2022-03-14 15:50:17 -03:00 committed by Germano Cavalcante
parent d4e46c13cc
commit fc259d4c30
Notes: blender-bot 2023-02-14 02:22:13 +01:00
Referenced by issue #96499, Remesh modifier after a Geometry Nodes modifier destroys the material
1 changed files with 1 additions and 1 deletions

View File

@ -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(