{"action":"closed","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4242","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4242/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4242/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4242/events","html_url":"https://github.com/mono/MonoGame/issues/4242","id":116912036,"number":4242,"title":"Different render result XNA/MonoGame","user":{"login":"KakCAT","id":2372854,"avatar_url":"https://avatars.githubusercontent.com/u/2372854?v=3","gravatar_id":"","url":"https://api.github.com/users/KakCAT","html_url":"https://github.com/KakCAT","followers_url":"https://api.github.com/users/KakCAT/followers","following_url":"https://api.github.com/users/KakCAT/following{/other_user}","gists_url":"https://api.github.com/users/KakCAT/gists{/gist_id}","starred_url":"https://api.github.com/users/KakCAT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KakCAT/subscriptions","organizations_url":"https://api.github.com/users/KakCAT/orgs","repos_url":"https://api.github.com/users/KakCAT/repos","events_url":"https://api.github.com/users/KakCAT/events{/privacy}","received_events_url":"https://api.github.com/users/KakCAT/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-14T08:56:14Z","updated_at":"2015-11-14T11:14:53Z","closed_at":"2015-11-14T11:14:53Z","body":"The following code:\r\n\r\n    Texture2D tex;\r\n    SpriteBatch batch;\r\n\r\n....\r\n\r\n\tif (tex==null)\r\n\t{\r\n\t\ttex=new Texture2D (g.GraphicsDevice,1,1);\r\n\t\tColor []col=new Color [1]; col[0]=Color.White;\r\n\t\ttex.SetData<Color> (col);\r\n\t\tbatch=new SpriteBatch (g.GraphicsDevice);\r\n\t}\r\n\t\r\n\tbatch.Begin (SpriteSortMode.Deferred,BlendState.NonPremultiplied,SamplerState.LinearWrap,DepthStencilState.Default,RasterizerState.CullNone);\r\n\r\n\tbatch.Draw (tex,new Rectangle (100,100,50,50),Color.White);\r\n\tbatch.Draw (tex,new Rectangle (120,120,50,50),null,Color.Red,0,Vector2.Zero,SpriteEffects.None,1);\r\n\r\n\tbatch.End();\r\n\r\n\r\nin XNA renders the white rectangle in front of the red rectangle, however in MonoGame renders the white rectangle behind the red rectangle."}}