comparison src/video/win32/SDL_d3drender.c @ 2698:e1da92da346c gsoc2008_nds

Clean up.
author Darren Alton <dalton@stevens.edu>
date Wed, 27 Aug 2008 04:23:38 +0000
parents 926294b2bb4e
children e33ad7ebb7eb
comparison
equal deleted inserted replaced
2697:c9121b04cffa 2698:e1da92da346c
594 IDirect3DTexture9_UnlockRect(temp, 0); 594 IDirect3DTexture9_UnlockRect(temp, 0);
595 595
596 result = 596 result =
597 IDirect3DDevice9_UpdateTexture(renderdata->device, 597 IDirect3DDevice9_UpdateTexture(renderdata->device,
598 (IDirect3DBaseTexture9 *) temp, 598 (IDirect3DBaseTexture9 *) temp,
599 (IDirect3DBaseTexture9 *) data-> 599 (IDirect3DBaseTexture9 *)
600 texture); 600 data->texture);
601 IDirect3DTexture9_Release(temp); 601 IDirect3DTexture9_Release(temp);
602 if (FAILED(result)) { 602 if (FAILED(result)) {
603 D3D_SetError("UpdateTexture()", result); 603 D3D_SetError("UpdateTexture()", result);
604 return -1; 604 return -1;
605 } 605 }
803 D3DTEXF_GAUSSIANQUAD); 803 D3DTEXF_GAUSSIANQUAD);
804 break; 804 break;
805 } 805 }
806 806
807 result = 807 result =
808 IDirect3DDevice9_SetTexture(data->device, 0, 808 IDirect3DDevice9_SetTexture(data->device, 0, (IDirect3DBaseTexture9 *)
809 (IDirect3DBaseTexture9 *) texturedata-> 809 texturedata->texture);
810 texture);
811 if (FAILED(result)) { 810 if (FAILED(result)) {
812 D3D_SetError("SetTexture()", result); 811 D3D_SetError("SetTexture()", result);
813 return -1; 812 return -1;
814 } 813 }
815 result = 814 result =