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

Fixed calls to SDL_AddRenderDriver()
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 08:45:08 +0000
parents 6338b7f2d024
children ce7d4942d18b
line wrap: on
line diff
--- a/src/video/win32/SDL_gapirender.c	Fri Dec 04 08:26:32 2009 +0000
+++ b/src/video/win32/SDL_gapirender.c	Fri Dec 04 08:45:08 2009 +0000
@@ -92,6 +92,8 @@
 void
 GAPI_AddRenderDriver(_THIS)
 {
+    int i;
+
     /* TODO: should we check for support of GetRawFramebuffer here?
      */
 #if USE_GAPI_EMU
@@ -125,7 +127,9 @@
 #undef LINK
     }
 
-    SDL_AddRenderDriver(0, &GAPI_RenderDriver);
+    for (i = 0; i < _this->num_displays; ++i) {
+        SDL_AddRenderDriver(&_this->displays[i], &GAPI_RenderDriver);
+    }
 }
 
 typedef enum