Use the correct clamping function. Patch by Philip Falkner. Hopefully
fixes some ATI glitches. CCBUG: 177118 svn path=/trunk/KDE/kdebase/workspace/; revision=896693
This commit is contained in:
parent
8f954ddc55
commit
94fd94aac1
1 changed files with 2 additions and 2 deletions
|
@ -624,8 +624,8 @@ void ShadowEffect::drawShadowQuadOpenGL( GLTexture *texture, QVector<float> vert
|
|||
prepareRenderStates( texture, opacity, brightness, saturation );
|
||||
texture->bind();
|
||||
texture->enableNormalizedTexCoords();
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP );
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP );
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
|
||||
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
|
||||
renderGLGeometry( region, 4, verts.data(), texCoords.data() );
|
||||
texture->disableNormalizedTexCoords();
|
||||
texture->unbind();
|
||||
|
|
Loading…
Reference in a new issue