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:
@@ -223,7 +223,7 @@ static PyObject *pygpu_texture__tp_new(PyTypeObject *UNUSED(self), PyObject *arg
|
|||||||
1,
|
1,
|
||||||
pygpu_textureformat.value_found,
|
pygpu_textureformat.value_found,
|
||||||
GPU_DATA_FLOAT,
|
GPU_DATA_FLOAT,
|
||||||
NULL);
|
data);
|
||||||
}
|
}
|
||||||
else if (len == 2) {
|
else if (len == 2) {
|
||||||
tex = GPU_texture_create_2d(
|
tex = GPU_texture_create_2d(
|
||||||
|
|||||||
Reference in New Issue
Block a user