aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIFontTTFDX.cpp
diff options
context:
space:
mode:
authorCrystalPT <CrystalPT@svn>2010-07-09 21:26:32 +0000
committerCrystalPT <CrystalPT@svn>2010-07-09 21:26:32 +0000
commitcec51889b42de9c6f034665c7343b040e1b29ac2 (patch)
tree1a68e47bdfb498ff13665bfa5b6a600b76484baa /guilib/GUIFontTTFDX.cpp
parent93c9c2e5cfc81a4d52f2a75b95757d614e4ca4f3 (diff)
[WIN32] use the D3DLOCK_DISCARD and D3DLOCK_READONLY flags to let DX optimize the data transfer
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31683 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIFontTTFDX.cpp')
-rw-r--r--guilib/GUIFontTTFDX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/guilib/GUIFontTTFDX.cpp b/guilib/GUIFontTTFDX.cpp
index 68eecf0f1f..47b80a3dc9 100644
--- a/guilib/GUIFontTTFDX.cpp
+++ b/guilib/GUIFontTTFDX.cpp
@@ -141,7 +141,7 @@ CBaseTexture* CGUIFontTTFDX::ReallocTexture(unsigned int& newHeight)
m_textureWidth = desc.Width;
D3DLOCKED_RECT rect;
- newTexture->LockRect(0, &rect, NULL, 0);
+ newTexture->LockRect(0, &rect, NULL, D3DLOCK_DISCARD);
memset(rect.pBits, 0, rect.Pitch * m_textureHeight);
newTexture->UnlockRect(0);