Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Commit

Permalink
[WP8] Fix compilation with latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Jan 5, 2013
1 parent 1fadcda commit a13cda7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Samples/WP8/MiniCube/SharpDXBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public virtual void CreateWindowSizeDependentResources()
_renderTargetSize.Width = texture2D.Description.Width;
_renderTargetSize.Height = texture2D.Description.Height;

ComObject.Dispose(ref _depthStencilView);
Utilities.Dispose(ref _depthStencilView);

using (var depthTexture = new Texture2D(
_device,
Expand Down
6 changes: 3 additions & 3 deletions Source/Toolkit/SharpDX.Toolkit.Game/GameWindowWP8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ void IDrawingSurfaceBackgroundContentProviderNative.Connect(DrawingSurfaceRuntim

void IDrawingSurfaceBackgroundContentProviderNative.Disconnect()
{
ComObject.Dispose(ref GraphicsDevice);
ComObject.Dispose(ref BackBuffer);
Utilities.Dispose(ref GraphicsDevice);
Utilities.Dispose(ref BackBuffer);
}

void IDrawingSurfaceBackgroundContentProviderNative.PrepareResources(DateTime presentTargetTime, ref DrawingSizeF desiredRenderTargetSize)
Expand All @@ -200,7 +200,7 @@ struct RenderTargetLocal

public void Dispose()
{
ComObject.Dispose(ref RenderTarget);
Utilities.Dispose(ref RenderTarget);
NativePointer = IntPtr.Zero;
}
}
Expand Down

0 comments on commit a13cda7

Please sign in to comment.