Revert "fix: optimization: Various PVS-Studio warnings"

This commit is contained in:
MihailRis 2024-08-02 14:51:44 +03:00 • committed by GitHub
parent a7ef7bb365
commit ba046a52c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
90 changed files with 259 additions and 274 deletions

View file

@ -205,11 +205,11 @@ void Window::clearDepth() {
glClear(GL_DEPTH_BUFFER_BIT);
}
void Window::setBgColor(const glm::vec3 &color) {
void Window::setBgColor(glm::vec3 color) {
glClearColor(color.r, color.g, color.b, 1.0f);
}
void Window::setBgColor(const glm::vec4 &color) {
void Window::setBgColor(glm::vec4 color) {
glClearColor(color.r, color.g, color.b, color.a);
}