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

Method CheckLinkError

src/GLSLProgram.h:105–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected