Mercurial > fife-parpg
changeset 625:92290efadab7
* This fixes a small bug that causes some primitives to not be rendered by the OpenGL renderbackend
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 01 Oct 2010 21:27:37 +0000 |
parents | b312d170ab0c |
children | 01994b7e505a |
files | engine/core/video/opengl/glimage.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/engine/core/video/opengl/glimage.cpp Fri Oct 01 19:25:40 2010 +0000 +++ b/engine/core/video/opengl/glimage.cpp Fri Oct 01 21:27:37 2010 +0000 @@ -105,7 +105,7 @@ /// setting transparency for the whole primitive: glColor4ub( 255, 255, 255, alpha ); - GLEnable flag(GL_TEXTURE_2D); + glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, m_textureids[0]); glBegin(GL_QUADS); @@ -121,6 +121,7 @@ glTexCoord2f(m_col_tex_coord, 0.0f); glVertex2i(rect.x + w, rect.y); glEnd(); + glDisable(GL_TEXTURE_2D); }