public void CheckTexture(ref D3D11.Texture2D tx, GDI.Size size) { if (tx == null) return; if (tx.Description.Width != size.Width || tx.Description.Height != size.Height) { tx.Dispose(); tx = null; } }
public void CheckTexture(ref D3D11.Texture2D tx, GDI.Size size) { if (tx == null) return; if (tx.Description.Width != size.Width || tx.Description.Height != size.Height) { tx.Dispose(); tx = null; } }