diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-08-06 20:52:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-08-06 20:52:49 +0300 |
commit | 9a1ff4445b98312d4f33afda3d6d339317dfea00 (patch) | |
tree | a6d5b11fa6e144b2ee697d0d5c30d8734aec5c98 /source/blender/draw/intern/draw_manager.c | |
parent | 6f87a7ad9fef3db552e5f18e2244df3fbde84e06 (diff) | |
parent | 3d35012a050e82c2c363a7c2054fdae75999297a (diff) |
Merge branch 'blender-v2.90-release'
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 ede589f5bba..e464c7adc03 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(); |