src/video/win32/SDL_gdirender.c
changeset 1924 69217fdd2c0a
parent 1920 8a162bfdc838
child 1965 a788656ca29a
     1.1 --- a/src/video/win32/SDL_gdirender.c	Sat Jul 22 19:51:48 2006 +0000
     1.2 +++ b/src/video/win32/SDL_gdirender.c	Sat Jul 22 21:02:57 2006 +0000
     1.3 @@ -249,7 +249,6 @@
     1.4      if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) {
     1.5          data->yuv = SDL_SW_CreateYUVTexture(texture);
     1.6          if (!data->yuv) {
     1.7 -            GDI_DestroyTexture(renderer, texture);
     1.8              return -1;
     1.9          }
    1.10          data->format = display->current_mode.format;
    1.11 @@ -266,7 +265,6 @@
    1.12          bmi_size = sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD);
    1.13          bmi = (LPBITMAPINFO) SDL_calloc(1, bmi_size);
    1.14          if (!bmi) {
    1.15 -            GDI_DestroyTexture(renderer, texture);
    1.16              SDL_OutOfMemory();
    1.17              return -1;
    1.18          }
    1.19 @@ -291,7 +289,6 @@
    1.20                                            ncolors * sizeof(PALETTEENTRY));
    1.21              if (!palette) {
    1.22                  SDL_free(bmi);
    1.23 -                GDI_DestroyTexture(renderer, texture);
    1.24                  SDL_OutOfMemory();
    1.25                  return -1;
    1.26              }
    1.27 @@ -327,7 +324,6 @@
    1.28          data->pixels = NULL;
    1.29      }
    1.30      if (!data->hbm) {
    1.31 -        GDI_DestroyTexture(renderer, texture);
    1.32          WIN_SetError("Couldn't create bitmap");
    1.33          return -1;
    1.34      }