Used the MANAGED pool for non-renderable textures on XP.
TRAC #14743
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@874 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libEGL/Display.cpp b/src/libEGL/Display.cpp
index 38221e1..aa975f7 100644
--- a/src/libEGL/Display.cpp
+++ b/src/libEGL/Display.cpp
@@ -976,6 +976,23 @@
return D3DPOOL_DEFAULT;
}
+D3DPOOL Display::getTexturePool(bool renderable) const
+{
+ if (mD3d9Ex != NULL)
+ {
+ return D3DPOOL_DEFAULT;
+ }
+ else
+ {
+ if (!renderable)
+ {
+ return D3DPOOL_MANAGED;
+ }
+ }
+
+ return D3DPOOL_DEFAULT;
+}
+
bool Display::getEventQuerySupport()
{
IDirect3DQuery9 *query;