From 3e25f28677c5cca84c926212ce853338b86e7820 Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Mon, 4 Jul 2011 05:06:26 +0000 Subject: [PATCH] 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 --- Radegast/GUI/Rendering/Rendering.cs | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.11.0