diff src/video/x11/SDL_x11render.c @ 4574:bfb4933c0efa

Fix initial value of the xrender_available boolean in X11_CreateTexture.
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Fri, 28 May 2010 20:47:24 +0530
parents 6399178be313
children 037ddbeee6c3
line wrap: on
line diff
--- a/src/video/x11/SDL_x11render.c	Fri May 28 20:40:09 2010 +0530
+++ b/src/video/x11/SDL_x11render.c	Fri May 28 20:47:24 2010 +0530
@@ -397,7 +397,6 @@
     X11_TextureData *data;
     int pitch_alignmask = ((renderdata->scanline_pad / 8) - 1);
 
-
     data = (X11_TextureData *) SDL_calloc(1, sizeof(*data));
     if (!data) {
         SDL_OutOfMemory();
@@ -418,6 +417,8 @@
            can be no BadMatch error since Xrender takes care of that.
         */
 #ifdef SDL_VIDEO_DRIVER_X11_XRENDER
+        // Assume the texture is supported by Xrender
+        data->xrender_available = TRUE
         if(renderdata->xrender_available == SDL_False) {
             if (texture->format != display->current_mode.format) {
                 SDL_SetError("Texture format doesn't match window format");