- fixed: BoundTextureDraw2D must reset the texture mode.

This commit is contained in:
Christoph Oelckers 2016-05-10 20:50:01 +02:00
parent 2709391ce9
commit 0cc57c6141

View file

@ -1285,6 +1285,7 @@ void BoundTextureDraw2D(const GLsizei width, const GLsizei height)
vbo->RenderCurrent(ptr, GL_TRIANGLE_STRIP); vbo->RenderCurrent(ptr, GL_TRIANGLE_STRIP);
gl_RenderState.SetEffect(EFF_NONE); gl_RenderState.SetEffect(EFF_NONE);
gl_RenderState.SetTextureMode(TM_MODULATE);
} }
bool BoundTextureSaveAsPNG(const GLenum target, const char* const path) bool BoundTextureSaveAsPNG(const GLenum target, const char* const path)