Use Texture From Pixmap for the styled EffectFrame
svn path=/trunk/KDE/kdebase/workspace/; revision=1155056
This commit is contained in:
parent
ef79d4c443
commit
84e8fa4634
1 changed files with 4 additions and 1 deletions
|
@ -2187,7 +2187,10 @@ void SceneOpenGL::EffectFrame::updateTexture()
|
|||
{
|
||||
delete m_texture;
|
||||
if( m_effectFrame->style() == Styled )
|
||||
m_texture = new GLTexture( m_effectFrame->frame().framePixmap() );
|
||||
{
|
||||
QPixmap pixmap = m_effectFrame->frame().framePixmap();
|
||||
m_texture = new Texture( pixmap.handle(), pixmap.size(), pixmap.depth() );
|
||||
}
|
||||
}
|
||||
|
||||
void SceneOpenGL::EffectFrame::updateTextTexture()
|
||||
|
|
Loading…
Reference in a new issue