MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/HBAOPlus / CheckCompileError

Method CheckCompileError

src/GLSLProgram.h:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85protected:
86 static void CheckCompileError(const GFSDK_SSAO_GLFunctions& GL, GLuint Shader)
87 {
88 GLint Compiled = 0;
89 GL.glGetShaderiv(Shader, GL_COMPILE_STATUS, &Compiled);
90 ASSERT_GL_ERROR(GL);
91
92#if _DEBUG
93 char temp[1024];
94 GL.glGetShaderInfoLog(Shader, sizeof(temp), 0, temp);
95 if (!Compiled || strstr(temp, "deprecated"))
96 {
97 fprintf(stderr, "%s\n", temp);
98 ASSERT(0);
99 }
100#endif
101
102 THROW_IF(!Compiled);
103 }
104
105 static void CheckLinkError(const GFSDK_SSAO_GLFunctions& GL, GLuint Program)
106 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected