From 731f3e7bba47848513555a0e6af47d420ebd2392 Mon Sep 17 00:00:00 2001 From: TwinAphex51224 Date: Mon, 16 Apr 2012 18:32:04 +0200 Subject: [PATCH] (360) found bug while in debug mode - have to set texture to NULL first before doing lockrect / unlockrect --- 360/xdk360_video.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/360/xdk360_video.cpp b/360/xdk360_video.cpp index 91011507ef..0dc2302b09 100644 --- a/360/xdk360_video.cpp +++ b/360/xdk360_video.cpp @@ -438,6 +438,7 @@ static bool xdk360_gfx_frame(void *data, const void *frame, hlsl_set_params(width, height, 512, 512, vid->d3dpp.BackBufferWidth, vid->d3dpp.BackBufferHeight, g_frame_count); + D3DDevice_SetTexture_Inline(vid->xdk360_render_device, 0, NULL); D3DLOCKED_RECT d3dlr; D3DTexture_LockRect(vid->lpTexture, 0, &d3dlr, NULL, D3DLOCK_NOSYSLOCK); for (unsigned y = 0; y < height; y++)