Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_manager_shader.c
| Context not available. | |||||
| #include "DEG_depsgraph_query.h" | #include "DEG_depsgraph_query.h" | ||||
| #include "GPU_extensions.h" | |||||
| #include "GPU_material.h" | #include "GPU_material.h" | ||||
| #include "GPU_shader.h" | #include "GPU_shader.h" | ||||
| Context not available. | |||||
| /* Do not defer the compilation if we are rendering for image. | /* Do not defer the compilation if we are rendering for image. | ||||
| * deferred rendering is only possible when `evil_C` is available */ | * deferred rendering is only possible when `evil_C` is available */ | ||||
| if (DST.draw_ctx.evil_C == NULL || DRW_state_is_image_render() || !USE_DEFERRED_COMPILATION || | if (DST.draw_ctx.evil_C == NULL || DRW_state_is_image_render() || !USE_DEFERRED_COMPILATION || | ||||
| !deferred) { | !deferred || GPU_main_thread_workaround()) { | ||||
| /* Double checking that this GPUMaterial is not going to be | /* Double checking that this GPUMaterial is not going to be | ||||
| * compiled by another thread. */ | * compiled by another thread. */ | ||||
| DRW_deferred_shader_remove(mat); | DRW_deferred_shader_remove(mat); | ||||
| Context not available. | |||||