All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent eafd18dac0
commit 25c3ba7338
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -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;