diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-11 16:06:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-11 16:25:09 +0300 |
commit | 7b96f02f5b7e08712874eadaad7275140d0f6ef5 (patch) | |
tree | be5a9e30afef99c119f29ab514bc207b15251ae5 /source/blender/blenkernel/intern/sequencer.c | |
parent | 145298e2d3b2edfc3ddb6d8ccfb3f393232dafb9 (diff) |
OpenGL Render: Support full-sample Anti-Aliasing
This brings back old (slower), higher quality method.
Useful since graphics cards often use a faster MSAA which only oversamples edges.
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index 6d583651e0f..08975fe17f0 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -565,6 +565,7 @@ void BKE_sequencer_new_render_data( r_context->view_id = 0; r_context->gpu_offscreen = NULL; r_context->gpu_samples = (scene->r.mode & R_OSA) ? scene->r.osa : 0; + r_context->gpu_full_samples = (r_context->gpu_samples) && (scene->r.scemode & R_FULL_SAMPLE); } /* ************************* iterator ************************** */ @@ -3221,7 +3222,7 @@ static ImBuf *seq_render_scene_strip(const SeqRenderData *context, Sequence *seq context->scene->r.seq_prev_type, (context->scene->r.seq_flag & R_SEQ_SOLID_TEX) != 0, use_gpencil, true, scene->r.alphamode, - context->gpu_samples, viewname, + context->gpu_samples, context->gpu_full_samples, viewname, context->gpu_fx, context->gpu_offscreen, err_out); if (ibuf == NULL) { fprintf(stderr, "seq_render_scene_strip failed to get opengl buffer: %s\n", err_out); |