=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: GL_ARB_instanced_arrays provides glDrawElementsInstanced.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:54 CST 2014


Module: wine
Branch: stable
Commit: 728766f64ef5293b2c5f7dda99c11394ac7b9558
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=728766f64ef5293b2c5f7dda99c11394ac7b9558

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Mon Nov  4 12:38:34 2013 +0100

wined3d: GL_ARB_instanced_arrays provides glDrawElementsInstanced.

(cherry picked from commit 292612cf4b4a906d273d096ffc2a8c25a0e735ac)

---

 dlls/wined3d/drawprim.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index 490bf15..2bd9488 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -44,7 +44,7 @@ static void drawStridedFast(const struct wined3d_gl_info *gl_info, GLenum primit
         GLenum idxtype = idx_size == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT;
         if (instance_count)
         {
-            if (!gl_info->supported[ARB_DRAW_INSTANCED])
+            if (!gl_info->supported[ARB_DRAW_INSTANCED] && !gl_info->supported[ARB_INSTANCED_ARRAYS])
             {
                 FIXME("Instanced drawing not supported.\n");
             }




More information about the wine-cvs mailing list