src/video/SDL_video.c
changeset 6174 5f221b7a5952
parent 6138 4c64952a58fb
child 6188 e82023802002
equal deleted inserted replaced
6172:062ce1e65f6e 6174:5f221b7a5952
   237                     }
   237                     }
   238                 }
   238                 }
   239             }
   239             }
   240         }
   240         }
   241         if (!renderer) {
   241         if (!renderer) {
       
   242             SDL_SetError("No hardware accelerated renderers available");
   242             return -1;
   243             return -1;
   243         }
   244         }
   244 
   245 
   245         /* Create the data after we successfully create the renderer (bug #1116) */
   246         /* Create the data after we successfully create the renderer (bug #1116) */
   246         data = (SDL_WindowTextureData *)SDL_calloc(1, sizeof(*data));
   247         data = (SDL_WindowTextureData *)SDL_calloc(1, sizeof(*data));