mirror of
https://github.com/SFML/SFML.git
synced 2025-01-31 21:55:13 +08:00
Fixed glBindProgramObject used on systems that don't support shaders
This commit is contained in:
parent
2a546411d5
commit
c0af511ed1
@ -270,7 +270,8 @@ void RenderTarget::ResetGLStates()
|
||||
ApplyBlendMode(BlendAlpha);
|
||||
ApplyTransform(Transform::Identity);
|
||||
ApplyTexture(NULL);
|
||||
ApplyShader(NULL);
|
||||
if (Shader::IsAvailable())
|
||||
ApplyShader(NULL);
|
||||
myCache.UseVertexCache = false;
|
||||
|
||||
// Set the default view
|
||||
|
Loading…
Reference in New Issue
Block a user