From 0b864d6572d398c41ec00cc3aed87f2038d6ca89 Mon Sep 17 00:00:00 2001 From: Alexandros Frantzis Date: Mon, 8 Apr 2019 12:04:47 +0300 Subject: [PATCH] vrend: Check for the EXT version of polygon_offset_clamp Also check for GL_EXT_polygon_offset_clamp when deciding whether the corresponding virgl feature is supported. This enables D3D11 in guest Wine (and thus Steam/Proton), when running on GLES hosts that support this extension. Signed-off-by: Alexandros Frantzis Reviewed-by: Gurchetan Singh --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 332e1ac..f5d3244 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -207,7 +207,7 @@ static const struct { FEAT(multi_draw_indirect, 43, UNAVAIL, "GL_ARB_multi_draw_indirect", "GL_EXT_multi_draw_indirect" ), FEAT(nv_conditional_render, UNAVAIL, UNAVAIL, "GL_NV_conditional_render" ), FEAT(nv_prim_restart, UNAVAIL, UNAVAIL, "GL_NV_primitive_restart" ), - FEAT(polygon_offset_clamp, 46, UNAVAIL, "GL_ARB_polygon_offset_clamp" ), + FEAT(polygon_offset_clamp, 46, UNAVAIL, "GL_ARB_polygon_offset_clamp", "GL_EXT_polygon_offset_clamp"), FEAT(qbo, 44, UNAVAIL, "GL_ARB_query_buffer_object" ), FEAT(robust_buffer_access, 43, UNAVAIL, "GL_ARB_robust_buffer_access_behavior", "GL_KHR_robust_buffer_access_behavior" ), FEAT(sample_mask, 32, 31, "GL_ARB_texture_multisample" ),