diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-04 23:56:30 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-05 18:49:14 +0300 |
commit | bac4606937514405641659d91a30bf3e6832cdf7 (patch) | |
tree | 740db8bff5e694c2e9f943f928e08030925d0fcf /source/blender/editors/space_sequencer/sequencer_draw.c | |
parent | 7d4adbdfaba4f23b2adbf96f97ce18806aca31c8 (diff) |
Cleanup: GPUTexture: Remove use of GPU_texture_create_nD
Use creation + update function instead.
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_draw.c')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c index 2f094661863..9504ed88bb1 100644 --- a/source/blender/editors/space_sequencer/sequencer_draw.c +++ b/source/blender/editors/space_sequencer/sequencer_draw.c @@ -1639,8 +1639,8 @@ static void sequencer_draw_display_buffer(const bContext *C, GPU_matrix_identity_projection_set(); } - GPUTexture *texture = GPU_texture_create_nD( - ibuf->x, ibuf->y, 0, 2, display_buffer, format, data, 0, false, NULL); + GPUTexture *texture = GPU_texture_create_2d(ibuf->x, ibuf->y, format, NULL, NULL); + GPU_texture_update(texture, data, display_buffer); GPU_texture_filter_mode(texture, false); GPU_texture_bind(texture, 0); |