test/testshape.c
changeset 5158 b3ccd1947786
parent 5147 ad50b3db78bd
child 5535 96594ac5fd1a
equal deleted inserted replaced
5157:657543cc92f9 5158:b3ccd1947786
   116     }
   116     }
   117     
   117     
   118     for(i=0;i<num_pictures;i++)
   118     for(i=0;i<num_pictures;i++)
   119         pictures[i].texture = NULL;
   119         pictures[i].texture = NULL;
   120     for(i=0;i<num_pictures;i++) {
   120     for(i=0;i<num_pictures;i++) {
   121         pictures[i].texture = SDL_CreateTextureFromSurface(renderer,0,pictures[i].surface);
   121         pictures[i].texture = SDL_CreateTextureFromSurface(renderer,pictures[i].surface);
   122         if(pictures[i].texture == NULL) {
   122         if(pictures[i].texture == NULL) {
   123             j = 0;
   123             j = 0;
   124             for(j=0;j<num_pictures;i++)
   124             for(j=0;j<num_pictures;i++)
   125                 if(pictures[i].texture != NULL)
   125                 if(pictures[i].texture != NULL)
   126                     SDL_DestroyTexture(pictures[i].texture);
   126                     SDL_DestroyTexture(pictures[i].texture);