(360) found bug while in debug mode - have to set texture to NULL

first before doing lockrect / unlockrect
This commit is contained in:
TwinAphex51224 2012-04-16 18:32:04 +02:00
parent dcbd252c38
commit 731f3e7bba
1 changed files with 1 additions and 0 deletions

View File

@ -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++)