summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--o3d/core/cross/gl/texture_gl.cc4
-rw-r--r--o3d/core/win/d3d9/texture_d3d9.cc4
2 files changed, 0 insertions, 8 deletions
diff --git a/o3d/core/cross/gl/texture_gl.cc b/o3d/core/cross/gl/texture_gl.cc
index 3238208..f904d3d 100644
--- a/o3d/core/cross/gl/texture_gl.cc
+++ b/o3d/core/cross/gl/texture_gl.cc
@@ -347,8 +347,6 @@ Texture2DGL* Texture2DGL::Create(ServiceLocator* service_locator,
// for use during Texture2DGL::Lock.
if (resize_to_pot) {
texture->backing_bitmap_->AllocateData();
- memset(texture->backing_bitmap_->image_data(), 0,
- texture->backing_bitmap_->GetTotalSize());
texture->has_levels_ = (1 << bitmap->num_mipmaps()) - 1;
}
}
@@ -593,8 +591,6 @@ TextureCUBEGL* TextureCUBEGL::Create(ServiceLocator* service_locator,
// for use during TextureCUBEGL::Lock.
if (resize_to_pot) {
texture->backing_bitmap_->AllocateData();
- memset(texture->backing_bitmap_->image_data(), 0,
- texture->backing_bitmap_->GetTotalSize());
for (unsigned int face = 0; face < 6; ++face) {
texture->has_levels_[face] = (1 << bitmap->num_mipmaps()) - 1;
}
diff --git a/o3d/core/win/d3d9/texture_d3d9.cc b/o3d/core/win/d3d9/texture_d3d9.cc
index e35b1af..54ed901 100644
--- a/o3d/core/win/d3d9/texture_d3d9.cc
+++ b/o3d/core/win/d3d9/texture_d3d9.cc
@@ -280,8 +280,6 @@ Texture2DD3D9* Texture2DD3D9::Create(ServiceLocator* service_locator,
} else {
if (resize_to_pot) {
texture->backing_bitmap_->AllocateData();
- memset(texture->backing_bitmap_->image_data(), 0,
- texture->backing_bitmap_->GetTotalSize());
}
}
@@ -539,8 +537,6 @@ TextureCUBED3D9* TextureCUBED3D9::Create(ServiceLocator* service_locator,
} else {
if (resize_to_pot) {
texture->backing_bitmap_->AllocateData();
- memset(texture->backing_bitmap_->image_data(), 0,
- texture->backing_bitmap_->GetTotalSize());
}
}