Browse Source

Direct3D9 working

JoshEngebretson 10 years ago
parent
commit
cfab6fa90d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/Atomic/Graphics/Direct3D9/D3D9Graphics.cpp

+ 3 - 3
Source/Atomic/Graphics/Direct3D9/D3D9Graphics.cpp

@@ -628,7 +628,7 @@ void Graphics::Close()
     }
     }
 }
 }
 
 
-bool Graphics::TakeScreenShot(Image& destImage)
+bool Graphics::TakeScreenShot(Image* destImage)
 {
 {
     PROFILE(TakeScreenShot);
     PROFILE(TakeScreenShot);
     
     
@@ -696,8 +696,8 @@ bool Graphics::TakeScreenShot(Image& destImage)
         return false;
         return false;
     }
     }
     
     
-    destImage.SetSize(width_, height_, 3);
-    unsigned char* destData = destImage.GetData();
+    destImage->SetSize(width_, height_, 3);
+    unsigned char* destData = destImage->GetData();
     
     
     if (surfaceDesc.Format == D3DFMT_R5G6B5)
     if (surfaceDesc.Format == D3DFMT_R5G6B5)
     {
     {