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:
authorClément Foucault <foucault.clem@gmail.com>2020-09-04 23:56:30 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-05 18:49:14 +0300
commitbac4606937514405641659d91a30bf3e6832cdf7 (patch)
tree740db8bff5e694c2e9f943f928e08030925d0fcf /source/blender/draw/intern/draw_fluid.c
parent7d4adbdfaba4f23b2adbf96f97ce18806aca31c8 (diff)
Cleanup: GPUTexture: Remove use of GPU_texture_create_nD
Use creation + update function instead.
Diffstat (limited to 'source/blender/draw/intern/draw_fluid.c')
-rw-r--r--source/blender/draw/intern/draw_fluid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_fluid.c b/source/blender/draw/intern/draw_fluid.c
index c9f181f53db..9b63b50db61 100644
--- a/source/blender/draw/intern/draw_fluid.c
+++ b/source/blender/draw/intern/draw_fluid.c
@@ -184,8 +184,7 @@ static GPUTexture *create_volume_texture(const int dim[3],
int final_dim[3] = {UNPACK3(dim)};
while (1) {
- tex = GPU_texture_create_nD(
- UNPACK3(final_dim), 3, NULL, format, GPU_DATA_FLOAT, 0, false, NULL);
+ tex = GPU_texture_create_3d(UNPACK3(final_dim), format, NULL, NULL);
if (tex != NULL) {
break;