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/editors/space_clip/clip_draw.c
parent7d4adbdfaba4f23b2adbf96f97ce18806aca31c8 (diff)
Cleanup: GPUTexture: Remove use of GPU_texture_create_nD
Use creation + update function instead.
Diffstat (limited to 'source/blender/editors/space_clip/clip_draw.c')
-rw-r--r--source/blender/editors/space_clip/clip_draw.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source/blender/editors/space_clip/clip_draw.c b/source/blender/editors/space_clip/clip_draw.c
index 17539b2c423..8fbf9fa2144 100644
--- a/source/blender/editors/space_clip/clip_draw.c
+++ b/source/blender/editors/space_clip/clip_draw.c
@@ -1211,16 +1211,8 @@ static void draw_plane_marker_image(Scene *scene,
GPU_blend(GPU_BLEND_ALPHA);
}
- GPUTexture *texture = GPU_texture_create_nD(ibuf->x,
- ibuf->y,
- 0,
- 2,
- display_buffer,
- GPU_RGBA8,
- GPU_DATA_UNSIGNED_BYTE,
- 0,
- false,
- NULL);
+ GPUTexture *texture = GPU_texture_create_2d(ibuf->x, ibuf->y, GPU_RGBA8, NULL, NULL);
+ GPU_texture_update(texture, GPU_DATA_UNSIGNED_BYTE, display_buffer);
GPU_texture_filter_mode(texture, false);
GPU_matrix_push();