All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -187,11 +187,8 @@ bool CheckCompileResult(int shaderId, const char* shaderName, bool isVertex)
|
||||
if (res != 0) {
|
||||
return false;
|
||||
}
|
||||
int headerLen = snprintf(log,
|
||||
48,
|
||||
"Error compiling %s %s shader: ",
|
||||
shaderName,
|
||||
isVertex ? "vertex" : "fragment");
|
||||
int headerLen
|
||||
= snprintf(log, 48, "Error compiling %s %s shader: ", shaderName, isVertex ? "vertex" : "fragment");
|
||||
glGetShaderInfoLog(shaderId, 1020 - headerLen, &len, log + headerLen);
|
||||
len += headerLen;
|
||||
if (len > 1020) {
|
||||
@@ -202,8 +199,7 @@ bool CheckCompileResult(int shaderId, const char* shaderName, bool isVertex)
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
Shader::CompileShader(const char* name, const char* _vertShader, const char* _fragShader)
|
||||
unsigned int Shader::CompileShader(const char* name, const char* _vertShader, const char* _fragShader)
|
||||
{
|
||||
vertShader = _vertShader;
|
||||
fragShader = _fragShader;
|
||||
|
||||
Reference in New Issue
Block a user