diff src/video/ps3/SDL_ps3video.c @ 3520:83518f8fcd61

Fixed calls to SDL_AddRenderDriver()
author Sam Lantinga <slouken@libsdl.org>
date Fri, 04 Dec 2009 08:45:08 +0000
parents 94fb40a4a9a7
children f7b03b6838cb
line wrap: on
line diff
--- a/src/video/ps3/SDL_ps3video.c	Fri Dec 04 08:26:32 2009 +0000
+++ b/src/video/ps3/SDL_ps3video.c	Fri Dec 04 08:45:08 2009 +0000
@@ -124,6 +124,8 @@
 int
 PS3_VideoInit(_THIS)
 {
+    int i;
+
     deprintf(1, "PS3_VideoInit()\n");
 
     SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
@@ -181,7 +183,9 @@
     memset(data->frame_buffer, 0x00, fb_finfo.smem_len);
 
     PS3_InitModes(_this);
-    SDL_AddRenderDriver(0, &SDL_PS3_RenderDriver);
+    for (i = 0; i < _this->num_displays; ++i) {
+        SDL_AddRenderDriver(&_this->displays[i], &SDL_PS3_RenderDriver);
+    }
 
     /* We're done! */
     return 0;