Bug 756606. Fix a bug in EnsureAllocated. r=Bas
authorNicholas Cameron <ncameron@mozilla.com>
Tue, 23 Jul 2013 11:05:49 +1200
changeset 151803 181a43481b18205c108520e5c56a108b75ffd5bc
parent 151802 7f69d2dc09601645f5fcb6ff8e7b549e81d054ff
child 151804 719257a27dbba6b2ee9170ed94f97183544b98f4
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs756606
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 756606. Fix a bug in EnsureAllocated. r=Bas
gfx/layers/d3d11/TextureD3D11.cpp
--- a/gfx/layers/d3d11/TextureD3D11.cpp
+++ b/gfx/layers/d3d11/TextureD3D11.cpp
@@ -83,17 +83,17 @@ void
 DeprecatedTextureClientD3D11::EnsureAllocated(gfx::IntSize aSize,
                                               gfxASurface::gfxContentType aType)
 {
   D3D10_TEXTURE2D_DESC desc;
 
   if (mTexture) {
     mTexture->GetDesc(&desc);
 
-    if (desc.Width == aSize.width || desc.Height == aSize.height) {
+    if (desc.Width == aSize.width && desc.Height == aSize.height) {
       return;
     }
 
     mTexture = nullptr;
     mSurface = nullptr;
     ClearDT();
   }