[PATCH 5/6] wined3d: Require ARB_draw_indirect for SM5.

Józef Kucia joseph.kucia at gmail.com
Fri Nov 3 08:35:19 CDT 2017


From: Józef Kucia <jkucia at codeweavers.com>

In order to disable feature level 11_0 when indirect draws
are not supported.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/wined3d/glsl_shader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 108bd1832f68..6f75a7a61a91 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -10704,6 +10704,7 @@ static unsigned int shader_glsl_get_shader_model(const struct wined3d_gl_info *g
     if (shader_model_4
             && gl_info->supported[ARB_COMPUTE_SHADER]
             && gl_info->supported[ARB_DERIVATIVE_CONTROL]
+            && gl_info->supported[ARB_DRAW_INDIRECT]
             && gl_info->supported[ARB_GPU_SHADER5]
             && gl_info->supported[ARB_SHADER_ATOMIC_COUNTERS]
             && gl_info->supported[ARB_SHADER_IMAGE_LOAD_STORE]
-- 
2.13.6




More information about the wine-patches mailing list