src/render/direct3d/SDL_render_d3d.c
changeset 10183 17e0ded12e6f
parent 9998 f67cf37e9cd4
--- a/src/render/direct3d/SDL_render_d3d.c	Fri Jun 24 19:06:06 2016 +0200
+++ b/src/render/direct3d/SDL_render_d3d.c	Fri Jun 24 22:17:56 2016 -0400
@@ -1004,6 +1004,10 @@
     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;
     }