forked from bartvdbraak/blender
Fix crash drawing hair with older GPUs.
Some GPU's have support for compute shaders, but don't support GLSL 4.3. This resulted in compiler errors and crashes. This issue could have been solved by supporting older GLSL languages but that would have been a hassle to get it right. We already have a fallback in place for GPU's that don't support compute shaders at all.
This commit is contained in:
parent
5eed7cdc8c
commit
861b7071a2
@ -460,7 +460,7 @@ void GLBackend::capabilities_init()
|
||||
|
||||
GCaps.mem_stats_support = GLEW_NVX_gpu_memory_info || GLEW_ATI_meminfo;
|
||||
GCaps.shader_image_load_store_support = GLEW_ARB_shader_image_load_store;
|
||||
GCaps.compute_shader_support = GLEW_ARB_compute_shader;
|
||||
GCaps.compute_shader_support = GLEW_ARB_compute_shader && GLEW_VERSION_4_3;
|
||||
if (GCaps.compute_shader_support) {
|
||||
glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 0, &GCaps.max_work_group_count[0]);
|
||||
glGetIntegeri_v(GL_MAX_COMPUTE_WORK_GROUP_COUNT, 1, &GCaps.max_work_group_count[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user