This repository was archived by the owner on Nov 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -815,18 +815,19 @@ void BlurEffect::blur(BetterBlur::Window *w, BetterBlur::BlurRenderData &renderI
815815 const auto &read = renderInfo.framebuffers [1 ];
816816
817817 if (m_noiseStrength > 0 ) {
818- if (const auto *noiseTexture = ensureNoiseTexture ()) {
818+ if (auto *noiseTexture = ensureNoiseTexture ()) {
819819 m_upsamplePass.shader ->setUniform (m_upsamplePass.noiseLocation , true );
820820 m_upsamplePass.shader ->setUniform (m_upsamplePass.noiseTextureSizeLocation , QVector2D (noiseTexture->width (), noiseTexture->height ()));
821+
821822 glUniform1i (m_upsamplePass.noiseTextureLocation , 1 );
822823 glActiveTexture (GL_TEXTURE1 );
823- glBindTexture ( GL_TEXTURE_2D , noiseTexture->texture () );
824+ noiseTexture->bind ( );
824825 }
825826 }
826827
827828 glUniform1i (m_upsamplePass.textureLocation , 0 );
828829 glActiveTexture (GL_TEXTURE0 );
829- glBindTexture ( GL_TEXTURE_2D , read->colorAttachment ()->texture () );
830+ read->colorAttachment ()->bind ( );
830831
831832 m_upsamplePass.shader ->setUniform (m_upsamplePass.topCornerRadiusLocation , topCornerRadius);
832833 m_upsamplePass.shader ->setUniform (m_upsamplePass.bottomCornerRadiusLocation , bottomCornerRadius);
You can’t perform that action at this time.
0 commit comments