Fixed sf::BlendNone not working
This commit is contained in:
parent
9163d04517
commit
78e7dcea38
@ -257,10 +257,9 @@ void RenderTarget::resetGLStates()
|
|||||||
// Define the default OpenGL states
|
// Define the default OpenGL states
|
||||||
glCheck(glDisable(GL_LIGHTING));
|
glCheck(glDisable(GL_LIGHTING));
|
||||||
glCheck(glDisable(GL_DEPTH_TEST));
|
glCheck(glDisable(GL_DEPTH_TEST));
|
||||||
|
glCheck(glDisable(GL_ALPHA_TEST));
|
||||||
glCheck(glEnable(GL_TEXTURE_2D));
|
glCheck(glEnable(GL_TEXTURE_2D));
|
||||||
glCheck(glEnable(GL_ALPHA_TEST));
|
|
||||||
glCheck(glEnable(GL_BLEND));
|
glCheck(glEnable(GL_BLEND));
|
||||||
glCheck(glAlphaFunc(GL_GREATER, 0));
|
|
||||||
glCheck(glMatrixMode(GL_MODELVIEW));
|
glCheck(glMatrixMode(GL_MODELVIEW));
|
||||||
glCheck(glEnableClientState(GL_VERTEX_ARRAY));
|
glCheck(glEnableClientState(GL_VERTEX_ARRAY));
|
||||||
glCheck(glEnableClientState(GL_COLOR_ARRAY));
|
glCheck(glEnableClientState(GL_COLOR_ARRAY));
|
||||||
|
Loading…
Reference in New Issue
Block a user