From 0cc57c614103a93862400c667ae6ee16a0f0d1bb Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <coelckers@zdoom.fake>
Date: Tue, 10 May 2016 20:50:01 +0200
Subject: [PATCH] - fixed: BoundTextureDraw2D must reset the texture mode.

---
 src/posix/cocoa/i_video.mm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm
index 069239b48..2c04c53a6 100644
--- a/src/posix/cocoa/i_video.mm
+++ b/src/posix/cocoa/i_video.mm
@@ -1285,6 +1285,7 @@ void BoundTextureDraw2D(const GLsizei width, const GLsizei height)
 	vbo->RenderCurrent(ptr, GL_TRIANGLE_STRIP);
 
 	gl_RenderState.SetEffect(EFF_NONE);
+	gl_RenderState.SetTextureMode(TM_MODULATE);
 }
 
 bool BoundTextureSaveAsPNG(const GLenum target, const char* const path)