diff options
author | vaxerski <[email protected]> | 2022-11-07 20:31:56 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-11-07 20:31:56 +0000 |
commit | e3a3837164ab4372d818f9d6b0e71731a118576c (patch) | |
tree | 5b19556f13a3588d85e229e520126b049655eb95 | |
parent | c86ab4694ce610fde69baeadec5e0166dac8396a (diff) | |
download | Hyprland-e3a3837164ab4372d818f9d6b0e71731a118576c.tar.gz Hyprland-e3a3837164ab4372d818f9d6b0e71731a118576c.zip |
fix up formatting
-rw-r--r-- | src/hyprerror/HyprError.cpp | 8 | ||||
-rw-r--r-- | src/managers/AnimationManager.cpp | 3 | ||||
-rw-r--r-- | src/render/OpenGL.cpp | 12 |
3 files changed, 11 insertions, 12 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index 3f53ef68..16543f9d 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -67,10 +67,10 @@ void CHyprError::createQueued() { glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - #ifndef GLES2 - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_R, GL_BLUE); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_B, GL_RED); - #endif +#ifndef GLES2 + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_R, GL_BLUE); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_B, GL_RED); +#endif glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, PMONITOR->vecPixelSize.x, PMONITOR->vecPixelSize.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, DATA); diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 550278a5..b15e96a9 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -164,8 +164,7 @@ void CAnimationManager::tick() { g_pHyprOpenGL->markBlurDirtyForMonitor(PMONITOR); } break; - } - case AVARDAMAGE_BORDER: { + } case AVARDAMAGE_BORDER: { RASSERT(PWINDOW, "Tried to AVARDAMAGE_BORDER a non-window AVAR!"); // damage only the border. diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index bcf91258..2964b3a1 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1236,13 +1236,13 @@ void CHyprOpenGLImpl::renderRoundedShadow(wlr_box* box, int round, int range, fl } } - pixman_region32_fini(&damageClip); + pixman_region32_fini(&damageClip); } else { - PIXMAN_DAMAGE_FOREACH(m_RenderData.pDamage) { - const auto RECT = RECTSARR[i]; - scissor(&RECT); - glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); - } + PIXMAN_DAMAGE_FOREACH(m_RenderData.pDamage) { + const auto RECT = RECTSARR[i]; + scissor(&RECT); + glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); + } } glDisableVertexAttribArray(m_RenderData.pCurrentMonData->m_shSHADOW.posAttrib); |