diff src/video/win32/SDL_d3drender.c @ 3520:83518f8fcd61

Fixed calls to SDL_AddRenderDriver()
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 08:45:08 +0000
parents 1374f9275de9
children 444cb12cadb6
line wrap: on
line diff
--- a/src/video/win32/SDL_d3drender.c	Fri Dec 04 08:26:32 2009 +0000
+++ b/src/video/win32/SDL_d3drender.c	Fri Dec 04 08:45:08 2009 +0000
@@ -327,7 +327,9 @@
         info->texture_formats[info->num_texture_formats++] =
             SDL_PIXELFORMAT_YVYU;
 
-        SDL_AddRenderDriver(0, &D3D_RenderDriver);
+        for (i = 0; i < _this->num_displays; ++i) {
+            SDL_AddRenderDriver(&_this->displays[i], &D3D_RenderDriver);
+        }
     }
 }