(String[] shSrc)
| 2051 | } |
| 2052 | |
| 2053 | protected static boolean containsVersionDirective(String[] shSrc) { |
| 2054 | for (String line : shSrc) { |
| 2055 | int versionIndex = line.indexOf("#version"); |
| 2056 | if (versionIndex >= 0) { |
| 2057 | int commentIndex = line.indexOf("//"); |
| 2058 | if (commentIndex < 0 || versionIndex < commentIndex) { |
| 2059 | return true; |
| 2060 | } |
| 2061 | } |
| 2062 | } |
| 2063 | return false; |
| 2064 | } |
| 2065 | |
| 2066 | protected int createShader(int shaderType, String source) { |
| 2067 | int shader = createShader(shaderType); |
no outgoing calls
no test coverage detected