Long overdue clang-format pass on most of the project (#773)

This commit is contained in:
wheremyfoodat
2025-07-06 18:25:20 +03:00
committed by GitHub
parent d1f4ae2911
commit 8e20bd6220
65 changed files with 13445 additions and 26224 deletions

View File

@@ -35,7 +35,7 @@ struct GLStateManager {
bool depthMask;
float clearRed, clearBlue, clearGreen, clearAlpha;
GLuint stencilMask;
GLuint boundVAO;
GLuint currentProgram;
@@ -241,13 +241,12 @@ struct GLStateManager {
void setBlendFunc(GLenum sourceRGB, GLenum destRGB, GLenum sourceAlpha, GLenum destAlpha) {
if (blendFuncSourceRGB != sourceRGB || blendFuncDestRGB != destRGB || blendFuncSourceAlpha != sourceAlpha ||
blendFuncDestAlpha != destAlpha) {
blendFuncSourceRGB = sourceRGB;
blendFuncDestRGB = destRGB;
blendFuncSourceAlpha = sourceAlpha;
blendFuncDestAlpha = destAlpha;
glBlendFuncSeparate(sourceRGB, destRGB,sourceAlpha, destAlpha);
glBlendFuncSeparate(sourceRGB, destRGB, sourceAlpha, destAlpha);
}
}

View File

@@ -133,7 +133,7 @@ struct DepthBuffer {
GL_DEPTH_COMPONENT,
GL_DEPTH_STENCIL,
};
static constexpr std::array<GLenum, 4> types = {
GL_UNSIGNED_SHORT,
GL_UNSIGNED_INT,