| 61 | )"; |
| 62 | |
| 63 | GLuint CompileOne(GLenum type, const char* src) |
| 64 | { |
| 65 | GLuint sh = glCreateShader(type); |
| 66 | glShaderSource(sh, 1, &src, nullptr); |
| 67 | glCompileShader(sh); |
| 68 | GLint ok = 0; |
| 69 | glGetShaderiv(sh, GL_COMPILE_STATUS, &ok); |
| 70 | if (!ok) |
| 71 | { |
| 72 | char log[512]; |
| 73 | glGetShaderInfoLog(sh, sizeof(log), nullptr, log); |
| 74 | LOG_ERROR(Graphics, "GL33 shadow-depth shader compile: {}", log); |
| 75 | glDeleteShader(sh); |
| 76 | return 0; |
| 77 | } |
| 78 | return sh; |
| 79 | } |
| 80 | |
| 81 | bool EnsureProgram() |
| 82 | { |
no outgoing calls
no test coverage detected