Removed the call to glPolygonMode, unavailable in OpenGL ES.
This commit is contained in:
parent
de791c05dc
commit
d908ffa498
@ -321,7 +321,6 @@ void RenderTarget::resetGLStates()
|
|||||||
glCheck(glEnableClientState(GL_VERTEX_ARRAY));
|
glCheck(glEnableClientState(GL_VERTEX_ARRAY));
|
||||||
glCheck(glEnableClientState(GL_COLOR_ARRAY));
|
glCheck(glEnableClientState(GL_COLOR_ARRAY));
|
||||||
glCheck(glEnableClientState(GL_TEXTURE_COORD_ARRAY));
|
glCheck(glEnableClientState(GL_TEXTURE_COORD_ARRAY));
|
||||||
glCheck(glPolygonMode(GL_FRONT_AND_BACK, GL_FILL));
|
|
||||||
m_cache.glStatesSet = true;
|
m_cache.glStatesSet = true;
|
||||||
|
|
||||||
// Apply the default SFML states
|
// Apply the default SFML states
|
||||||
@ -379,11 +378,11 @@ void RenderTarget::applyBlendMode(BlendMode mode)
|
|||||||
|
|
||||||
// Alpha blending
|
// Alpha blending
|
||||||
default :
|
default :
|
||||||
case BlendAlpha :
|
case BlendAlpha :
|
||||||
if (GL_blend_func_separate)
|
if (GL_blend_func_separate)
|
||||||
{
|
{
|
||||||
glCheck(glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
|
glCheck(glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
glCheck(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA));
|
glCheck(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA));
|
||||||
@ -392,11 +391,11 @@ void RenderTarget::applyBlendMode(BlendMode mode)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
// Additive blending
|
// Additive blending
|
||||||
case BlendAdd :
|
case BlendAdd :
|
||||||
if (GL_blend_func_separate)
|
if (GL_blend_func_separate)
|
||||||
{
|
{
|
||||||
glCheck(glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ONE, GL_ONE));
|
glCheck(glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ONE, GL_ONE));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
glCheck(glBlendFunc(GL_SRC_ALPHA, GL_ONE));
|
glCheck(glBlendFunc(GL_SRC_ALPHA, GL_ONE));
|
||||||
|
Loading…
Reference in New Issue
Block a user