diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-08-05 18:16:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-08-05 18:17:21 +0300 |
commit | b3d35d20397c03e0b493c9766300506820e8466d (patch) | |
tree | dba64067d11e6d2c1b78d369a29dd685a526b1b4 /source/blender | |
parent | 055af3a489102efd958c6fe1af35c2c920a36b0f (diff) |
Fix Cycles + grease pencil render failing after recent GPU refactoring
GPU_texture_update_sub now requires the texture to be bound already.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_render.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_render.c b/source/blender/draw/engines/gpencil/gpencil_render.c index 4748858a6a8..c3294f88acf 100644 --- a/source/blender/draw/engines/gpencil/gpencil_render.c +++ b/source/blender/draw/engines/gpencil/gpencil_render.c @@ -143,9 +143,11 @@ void GPENCIL_render_init(GPENCIL_Data *vedata, int w = BLI_rcti_size_x(rect); int h = BLI_rcti_size_y(rect); if (pix_col) { + GPU_texture_bind(txl->render_color_tx, 0); GPU_texture_update_sub(txl->render_color_tx, GPU_DATA_FLOAT, pix_col, x, y, 0, w, h, 0); } if (pix_z) { + GPU_texture_bind(txl->render_depth_tx, 0); GPU_texture_update_sub(txl->render_depth_tx, GPU_DATA_FLOAT, pix_z, x, y, 0, w, h, 0); } } |