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 @@ -1033,18 +1033,19 @@ void BlurEffect::blur(BlurRenderData &renderInfo, const RenderTarget &renderTarg
10331033 const auto &read = renderInfo.framebuffers [1 ];
10341034
10351035 if (m_settings.general .noiseStrength > 0 ) {
1036- if (const auto *noiseTexture = ensureNoiseTexture ()) {
1036+ if (auto *noiseTexture = ensureNoiseTexture ()) {
10371037 m_upsamplePass.shader ->setUniform (m_upsamplePass.noiseLocation , true );
10381038 m_upsamplePass.shader ->setUniform (m_upsamplePass.noiseTextureSizeLocation , QVector2D (noiseTexture->width (), noiseTexture->height ()));
1039+
10391040 glUniform1i (m_upsamplePass.noiseTextureLocation , 1 );
10401041 glActiveTexture (GL_TEXTURE1 );
1041- glBindTexture ( GL_TEXTURE_2D , noiseTexture->texture () );
1042+ noiseTexture->bind ( );
10421043 }
10431044 }
10441045
10451046 glUniform1i (m_upsamplePass.textureLocation , 0 );
10461047 glActiveTexture (GL_TEXTURE0 );
1047- glBindTexture ( GL_TEXTURE_2D , read->colorAttachment ()->texture () );
1048+ read->colorAttachment ()->bind ( );
10481049
10491050 m_upsamplePass.shader ->setUniform (m_upsamplePass.topCornerRadiusLocation , topCornerRadius);
10501051 m_upsamplePass.shader ->setUniform (m_upsamplePass.bottomCornerRadiusLocation , bottomCornerRadius);
You can’t perform that action at this time.
0 commit comments