diff options
author | Vincent Blankfield <vvv> | 2020-08-06 18:04:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-08-06 20:19:22 +0300 |
commit | 8fbfc150a097731c9a7a66a1c61a6d5a66973f14 (patch) | |
tree | adb74df88ab579b45200d237d91a1cf1ad9993fd /source/blender/draw/intern/draw_manager.c | |
parent | cc3cb52b23d8adcd2d0b7f6bc6bb3041dc1794cc (diff) |
Fix T77885: crash rendering grease pencil from compositor with multiple scenes
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 70c117d55b4..43025d9fef4 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -1658,7 +1658,6 @@ void DRW_render_gpencil(struct RenderEngine *engine, struct Depsgraph *depsgraph Scene *scene = DEG_get_evaluated_scene(depsgraph); ViewLayer *view_layer = DEG_get_evaluated_view_layer(depsgraph); RenderEngineType *engine_type = engine->type; - RenderData *r = &scene->r; Render *render = engine->re; DRW_render_context_enable(render); @@ -1680,7 +1679,7 @@ void DRW_render_gpencil(struct RenderEngine *engine, struct Depsgraph *depsgraph drw_context_state_init(); DST.viewport = GPU_viewport_create(); - const int size[2] = {(r->size * r->xsch) / 100, (r->size * r->ysch) / 100}; + const int size[2] = {engine->resolution_x, engine->resolution_y}; GPU_viewport_size_set(DST.viewport, size); drw_viewport_var_init(); |