From f626d36b4771db58df891bfcecb03043397d1d1e Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 8 Oct 2012 15:54:26 +0000 Subject: [PATCH] gpu: don't use D3DLOCK_DISCARD on the X360, it's not there. --- src/gpu/texture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpu/texture.cpp b/src/gpu/texture.cpp index 6b977ed1..28d5dcdc 100644 --- a/src/gpu/texture.cpp +++ b/src/gpu/texture.cpp @@ -118,7 +118,11 @@ void Texture::SetData(void *data) { #if defined _XBOX || defined USE_D3D9 D3DLOCKED_RECT rect; +# if defined USE_D3D9 m_data->m_tex->LockRect(0, &rect, NULL, D3DLOCK_DISCARD); +# else + m_data->m_tex->LockRect(0, &rect, NULL, 0); +# endif memcpy(rect.pBits, data, rect.Pitch * m_data->m_size.y);