aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
Diffstat (limited to 'guilib')
-rw-r--r--guilib/D3DResource.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/guilib/D3DResource.cpp b/guilib/D3DResource.cpp
index 8e757aec94..b2ac1164f5 100644
--- a/guilib/D3DResource.cpp
+++ b/guilib/D3DResource.cpp
@@ -123,7 +123,9 @@ void CD3DTexture::SaveTexture()
{
delete[] m_data;
m_data = NULL;
- if (!(m_usage & D3DUSAGE_RENDERTARGET) && !(m_usage & D3DUSAGE_DEPTHSTENCIL))
+ if(!(m_usage & D3DUSAGE_RENDERTARGET)
+ && !(m_usage & D3DUSAGE_DEPTHSTENCIL)
+ && !(m_pool == D3DPOOL_DEFAULT && (m_usage & D3DUSAGE_DYNAMIC) == 0))
{
D3DLOCKED_RECT lr;
if (LockRect( 0, &lr, NULL, D3DLOCK_READONLY ))