From: Latif Khalifa Date: Mon, 4 Jul 2011 05:06:26 +0000 (+0000) Subject: Don't zcrew up other rendering elements by leaving texture bound behind. X-Git-Tag: 2.8~418 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3e25f28677c5cca84c926212ce853338b86e7820;p=radegast%2Fradegast.git Don't zcrew up other rendering elements by leaving texture bound behind. git-svn-id: https://radegast.googlecode.com/svn/trunk@944 f7a694da-4d33-11de-9ad6-1127a62b9fcd --- diff --git a/Radegast/GUI/Rendering/Rendering.cs b/Radegast/GUI/Rendering/Rendering.cs index 519bbad..8f496be 100644 --- a/Radegast/GUI/Rendering/Rendering.cs +++ b/Radegast/GUI/Rendering/Rendering.cs @@ -1128,6 +1128,7 @@ namespace Radegast.Rendering } } } + GL.Disable(EnableCap.Texture2D); GL.DisableClientState(ArrayCap.VertexArray); GL.DisableClientState(ArrayCap.TextureCoordArray); } @@ -1514,6 +1515,7 @@ namespace Radegast.Rendering // Pop the prim matrix GL.PopMatrix(); } + GL.Disable(EnableCap.Texture2D); GL.DisableClientState(ArrayCap.VertexArray); GL.DisableClientState(ArrayCap.TextureCoordArray); GL.DisableClientState(ArrayCap.NormalArray);