equal
deleted
inserted
replaced
394 IDirect3DDevice9_CreateTexture(renderdata->device, texture->w, |
394 IDirect3DDevice9_CreateTexture(renderdata->device, texture->w, |
395 texture->h, 1, 0, |
395 texture->h, 1, 0, |
396 PixelFormatToD3DFMT(texture->format), |
396 PixelFormatToD3DFMT(texture->format), |
397 pool, &data->texture, NULL); |
397 pool, &data->texture, NULL); |
398 if (FAILED(result)) { |
398 if (FAILED(result)) { |
399 SDL_free(data); |
|
400 D3D_SetError("CreateTexture()", result); |
399 D3D_SetError("CreateTexture()", result); |
401 return -1; |
400 return -1; |
402 } |
401 } |
403 |
402 |
404 return 0; |
403 return 0; |