I've made this pach trying to follow the instructions given by @Brecht Van Lommel (brecht) on T78921
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
@Clément Foucault (fclem), any objections to this?
| source/blender/draw/intern/draw_manager.c | ||
|---|---|---|
| 1656 | This function call should be removed, it should already be happening because RE_USE_GPU_CONTEXT is set for Eevee and Workbench. | |
| 1708 | Same here. | |
| source/blender/makesrna/intern/rna_render.c | ||
| 872 | Description could be made more detailed here, like: Enable OpenGL context for the render method, for engines that render using OpenGL | |
| source/blender/render/intern/source/external_engine.c | ||
| 780 | Code style is is to put { on this line. Easiest way to conform code is to run make format. | |
| source/blender/draw/intern/draw_manager.c | ||
|---|---|---|
| 1708 | Are you sure about this ? If I remove it I get an exception thrown when it tries to do the grease pencil rendering. If I understand the code right, to avoid calling enable and disable twice we could move the DRW_render_gpencil call in RE_engine_render before the disable call, but then there's no point in checking for RE_USE_GPU_CONTEXT because an OpenGL context is always needed. | |