aboutsummaryrefslogtreecommitdiff
path: root/guilib/Texture.cpp
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2009-11-03 05:00:36 +0000
committerjmarshallnz <jmarshallnz@svn>2009-11-03 05:00:36 +0000
commit96ce678e8ecf67a1050678161a414fdcbadf1a7e (patch)
tree0ff93c1c3e8ceff26f832e5d7b1f719f9f00617c /guilib/Texture.cpp
parent2745c1b414e75621b77bd220cec24681d83259ad (diff)
added: Wrappers for Direct3D resources to ensure they survive a device teardown, and support for device teardown them in the render manager. Will need MakeFile and OSX project love.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@24219 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/Texture.cpp')
-rw-r--r--guilib/Texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/guilib/Texture.cpp b/guilib/Texture.cpp
index 997879a15d..f686d21f79 100644
--- a/guilib/Texture.cpp
+++ b/guilib/Texture.cpp
@@ -32,7 +32,9 @@
/************************************************************************/
CBaseTexture::CBaseTexture(unsigned int width, unsigned int height, unsigned int format)
{
+#ifndef HAS_DX
m_texture = NULL;
+#endif
m_pixels = NULL;
m_loadedToGPU = false;
Allocate(width, height, format);