mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fixed glBindProgramObject used on systems that don't support shaders
This commit is contained in:
parent
2a546411d5
commit
c0af511ed1
@ -270,6 +270,7 @@ void RenderTarget::ResetGLStates()
|
||||
ApplyBlendMode(BlendAlpha);
|
||||
ApplyTransform(Transform::Identity);
|
||||
ApplyTexture(NULL);
|
||||
if (Shader::IsAvailable())
|
||||
ApplyShader(NULL);
|
||||
myCache.UseVertexCache = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user