GPencil: Use high precision float buffer for final rendering

This avoid color drifting due to R11G11B10 buffers.
This commit is contained in:
Clément Foucault 2020-03-10 18:17:42 +01:00
parent fa09b900c2
commit 9c5a120ba2
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ void GPENCIL_cache_init(void *ved)
pd->use_layer_fb = false;
pd->use_object_fb = false;
pd->use_mask_fb = false;
pd->use_signed_fb = false;
/* Always use high precision for render. */
pd->use_signed_fb = !pd->is_viewport;
if (draw_ctx->v3d) {
const bool hide_overlay = ((draw_ctx->v3d->flag2 & V3D_HIDE_OVERLAYS) != 0);