Whoops, removed wrong variable.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 24 Aug 2012 19:39:51 -0400
changeset 6404 724e1fba7933
parent 6403 8d34c6248f4a
child 6406 3a098f2d4dea
Whoops, removed wrong variable.
src/render/direct3d/SDL_render_d3d.c
--- a/src/render/direct3d/SDL_render_d3d.c	Fri Aug 24 19:34:28 2012 -0400
+++ b/src/render/direct3d/SDL_render_d3d.c	Fri Aug 24 19:39:51 2012 -0400
@@ -681,6 +681,7 @@
 static int
 D3D_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
 {
+    D3D_RenderData *renderdata = (D3D_RenderData *) renderer->driverdata;
     D3D_TextureData *data;
     D3DPOOL pool;
     DWORD usage;
@@ -728,7 +729,6 @@
                   const SDL_Rect * rect, const void *pixels, int pitch)
 {
     D3D_TextureData *data = (D3D_TextureData *) texture->driverdata;
-    D3D_RenderData *renderdata = (D3D_RenderData *) renderer->driverdata;
     RECT d3drect;
     D3DLOCKED_RECT locked;
     const Uint8 *src;