Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 284 Bytes

Vertex Shaders.md

File metadata and controls

18 lines (11 loc) · 284 Bytes

Error Checking

int  success;
char infoLog[512];
glGetShaderiv(vertexShader, GL_COMPILE_STATUS, &success);
if(!success)
{
	glGetShaderInfoLog(vertexShader, 512, NULL, infoLog);
	std::cout << "ERROR::SHADER::VERTEX::COMPILATION_FAILED\n" << infoLog << std::endl;
}