From e0ffb911a22bb03755687f45fc1a996870e059a8 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Mon, 2 Mar 2020 09:24:06 +0100 Subject: [PATCH] Fix T74299: PyGPUOffscreen Color Management Color management currently happens after the python handlers. This means that all common drawing operations needs to happen in SRS. The PyGPUOffscreen requested that the color management was applied, that resulted into applying colormanagement twice. This patch makes sure that PyGPUOffscreen.draw_view3d renders in SRS. There are more code paths that needs to be checked that the correct space is being requested. --- source/blender/python/gpu/gpu_py_offscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c index 0efafe4e022..7e371d4f774 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.c +++ b/source/blender/python/gpu/gpu_py_offscreen.c @@ -257,7 +257,7 @@ static PyObject *bpygpu_offscreen_draw_view3d(BPyGPUOffScreen *self, true, true, "", - true, + false, self->ofs, NULL);