summaryrefslogtreecommitdiffstats
path: root/o3d/core/win
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/core/win')
-rw-r--r--o3d/core/win/d3d9/texture_d3d9.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/o3d/core/win/d3d9/texture_d3d9.cc b/o3d/core/win/d3d9/texture_d3d9.cc
index 7477848..e35b1af 100644
--- a/o3d/core/win/d3d9/texture_d3d9.cc
+++ b/o3d/core/win/d3d9/texture_d3d9.cc
@@ -229,9 +229,9 @@ Texture2DD3D9::Texture2DD3D9(ServiceLocator* service_locator,
bitmap.CheckAlphaIsOne(),
resize_to_pot,
enable_render_surfaces),
- d3d_texture_(tex) {
+ d3d_texture_(tex),
+ backing_bitmap_(Bitmap::Ref(new Bitmap(service_locator))) {
DCHECK(tex);
- backing_bitmap_ = Bitmap::Ref(new Bitmap(service_locator));
}
// Attempts to create a IDirect3DTexture9 with the given specs. If the creation
@@ -487,8 +487,8 @@ TextureCUBED3D9::TextureCUBED3D9(ServiceLocator* service_locator,
bitmap.CheckAlphaIsOne(),
resize_to_pot,
enable_render_surfaces),
- d3d_cube_texture_(tex) {
- backing_bitmap_ = Bitmap::Ref(new Bitmap(service_locator));
+ d3d_cube_texture_(tex),
+ backing_bitmap_(Bitmap::Ref(new Bitmap(service_locator))) {
}
// Attempts to create a D3D9 CubeTexture with the given specs. If creation