From ce66b22c427defa3db498d2d69ee615b3c913c5f Mon Sep 17 00:00:00 2001 From: mano-wii Date: Wed, 5 Jun 2019 13:06:11 -0300 Subject: Fix crash when editing shaders on Intel HD 4000. In the Intel HD 4000 driver a shader has to be deleted in the same context in which it is created. However, because you can't use a rendering context on different threads, to maintain the multithreaded compilation, the solution was to use the `GL_ARB_get_program_binary` and copy the binary generated for the shader and generate a shader on the main context using that binary. This solution is limited only to Intel HD 4000 and windows. Reviewers: fclem Reviewed By: fclem Differential Revision: https://developer.blender.org/D5019 --- source/blender/gpu/GPU_extensions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/gpu/GPU_extensions.h') diff --git a/source/blender/gpu/GPU_extensions.h b/source/blender/gpu/GPU_extensions.h index 8f602bf1398..d0abf671fcd 100644 --- a/source/blender/gpu/GPU_extensions.h +++ b/source/blender/gpu/GPU_extensions.h @@ -46,6 +46,7 @@ void GPU_get_dfdy_factors(float fac[2]); bool GPU_mip_render_workaround(void); bool GPU_depth_blitting_workaround(void); bool GPU_unused_fb_slot_workaround(void); +bool GPU_context_local_shaders_workaround(void); bool GPU_crappy_amd_driver(void); bool GPU_mem_stats_supported(void); -- cgit v1.2.3