From 930f680fc6ff09be2b87afe33350223f375bf8f1 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 20 Oct 2012 19:57:49 +0000 Subject: [PATCH] change d3d renderer to use a less unstable method for updating textures. shouldnt really affect performance any. some gpu drivers dont support the trick that was being used. --- BizHawk.MultiClient/RenderPanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.MultiClient/RenderPanel.cs b/BizHawk.MultiClient/RenderPanel.cs index ffd3a0fbcf..564a0dd329 100644 --- a/BizHawk.MultiClient/RenderPanel.cs +++ b/BizHawk.MultiClient/RenderPanel.cs @@ -80,13 +80,13 @@ namespace BizHawk.MultiClient while (textureWidth < imageWidth) textureWidth <<= 1; while (textureHeight < imageHeight) textureHeight <<= 1; // Create a new texture instance. - Texture = new Texture(GraphicsDevice, textureWidth, textureHeight, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default); + Texture = new Texture(GraphicsDevice, textureWidth, textureHeight, 1, Usage.None, Format.A8R8G8B8, Pool.Managed); } surface.FromBitmap(); // Copy the image data to the texture. - using (var Data = Texture.LockRectangle(0, LockFlags.Discard | LockFlags.NoDirtyUpdate).Data) + using (var Data = Texture.LockRectangle(0, LockFlags.None).Data) { if (imageWidth == textureWidth) {