Skip to content

Commit

Permalink
Fixed Bug 3147 - Windows: Crash when resizing Window since hg 1f9d579…
Browse files Browse the repository at this point in the history
…65528

Thanks for the fix, Gab!
  • Loading branch information
DavidLudwig committed Jun 25, 2016
1 parent ce456cf commit 23af328
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/render/direct3d/SDL_render_d3d.c
Expand Up @@ -1004,6 +1004,10 @@ D3D_RecreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
D3D_RenderData *data = (D3D_RenderData *)renderer->driverdata;
D3D_TextureData *texturedata = (D3D_TextureData *)texture->driverdata;

if (!texturedata) {
return 0;
}

if (D3D_RecreateTextureRep(data->device, &texturedata->texture, texture->format, texture->w, texture->h) < 0) {
return -1;
}
Expand Down

0 comments on commit 23af328

Please sign in to comment.