| 58 | { |
| 59 | |
| 60 | unsigned GLStaticHolder::getShaderId( ShaderType type ) |
| 61 | { |
| 62 | auto& instance = GLStaticHolder::instance_(); |
| 63 | auto& id = instance.shadersIds_[type]; |
| 64 | if ( id == 0 ) |
| 65 | { |
| 66 | instance.createShader_( type ); |
| 67 | } |
| 68 | |
| 69 | return id; |
| 70 | } |
| 71 | |
| 72 | void GLStaticHolder::freeShader( ShaderType type ) |
| 73 | { |
nothing calls this directly
no test coverage detected