Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 330 vs 331 for /trunk/Source Code/Hardware/Video/Shaders/Shader.cpp

Diff revisions: vs.
  @@ -25,9 +25,10 @@
25 25 // simple, handle-base check
26 26 U32 parentShaderID = shaderProgram->getId();
27 27 vectorImpl<ShaderProgram* >::iterator it;
28 - it = std::find_if(_parentShaderPrograms.begin(), _parentShaderPrograms.end(), [&parentShaderID](ShaderProgram const* sp)->bool {
29 - return sp->getId() == parentShaderID;
30 - });
28 + it = std::find_if(_parentShaderPrograms.begin(), _parentShaderPrograms.end(),
29 + [&parentShaderID](ShaderProgram const* sp)->bool {
30 + return sp->getId() == parentShaderID;
31 + });
31 32 // assert if we register the same shaderProgram with the same shader multiple times
32 33 assert(it == _parentShaderPrograms.end());
33 34 // actually register the shader
  @@ -40,9 +41,10 @@
40 41 U32 parentShaderID = shaderProgram->getId();
41 42
42 43 vectorImpl<ShaderProgram* >::iterator it;
43 - it = std::find_if( _parentShaderPrograms.begin(), _parentShaderPrograms.end(), [&parentShaderID]( ShaderProgram const* sp )->bool {
44 - return sp->getId() == parentShaderID;
45 - });
44 + it = std::find_if(_parentShaderPrograms.begin(), _parentShaderPrograms.end(),
45 + [&parentShaderID]( ShaderProgram const* sp )->bool {
46 + return sp->getId() == parentShaderID;
47 + });
46 48 // assert if the specified shader program wasn't registered
47 49 assert(it != _parentShaderPrograms.end());
48 50 // actually unregister the shader