| 103 | } |
| 104 | |
| 105 | static void CheckLinkError(const GFSDK_SSAO_GLFunctions& GL, GLuint Program) |
| 106 | { |
| 107 | GLint Linked = 0; |
| 108 | GL.glGetProgramiv(Program, GL_LINK_STATUS, &Linked); |
| 109 | ASSERT_GL_ERROR(GL); |
| 110 | |
| 111 | #if _DEBUG |
| 112 | char temp[1024]; |
| 113 | GL.glGetProgramInfoLog(Program, sizeof(temp), 0, temp); |
| 114 | if (!Linked || strstr(temp, "deprecated")) |
| 115 | { |
| 116 | fprintf(stderr, "%s\n", temp); |
| 117 | ASSERT(0); |
| 118 | } |
| 119 | #endif |
| 120 | |
| 121 | THROW_IF(!Linked); |
| 122 | } |
| 123 | |
| 124 | static GLuint AttachShader(const GFSDK_SSAO_GLFunctions& GL, GLuint Program, GLenum ShaderType, const char *ShaderSource) |
| 125 | { |
nothing calls this directly
no outgoing calls
no test coverage detected