Commit cdc3f6fb authored by Henrik Zimmer's avatar Henrik Zimmer
Browse files

added blending for SOLID_TEXTURED drawMode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9956 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 57739c29
......@@ -231,7 +231,8 @@ draw(GLState& _state, DrawModes::DrawMode _drawMode)
if ( (_drawMode & DrawModes::SOLID_TEXTURED ) ) {
glEnable(GL_AUTO_NORMAL);
glEnable(GL_NORMALIZE);
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_LIGHTING);
glShadeModel(GL_SMOOTH);
glDepthRange(0.01, 1.0);
......@@ -241,6 +242,7 @@ draw(GLState& _state, DrawModes::DrawMode _drawMode)
arb_texture_used_ = false;
glDepthRange(0.0, 1.0);
glDisable(GL_BLEND);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment