[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/kwin/lib
From: Martin Gräßlin <kde () martin-graesslin ! com>
Date: 2010-08-25 16:57:23
Message-ID: 20100825170036.7A676AC857 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1167909 by graesslin:
Forward port rev 1167908
Revert rev 1137490: it caused compositing not working with legacy NVIDIA drivers and \
might be responsible for freezes when changing config. It can be reverted as there is \
already a better fix for buggy drivers present in 4.5.1. Did I mention that I love \
drivers?
CCBUG: 243991
CCBUG: 241402
M +0 -20 kwinglutils.cpp
--- trunk/KDE/kdebase/workspace/kwin/lib/kwinglutils.cpp #1167908:1167909
@@ -905,27 +905,7 @@
void GLRenderTarget::initStatic()
{
mSupported = hasGLExtension("GL_EXT_framebuffer_object") && \
glFramebufferTexture2D;
- if( mSupported )
- {
- // some drivers claim to support the extension, but fail to return a \
complete FBO (see Bug 240956)
- // generate a FBO and test if it is valid. If it isn't valid there's no need \
to claim that FBO's are supported
- int w = displayWidth();
- int h = displayHeight();
- if ( !GLTexture::NPOTTextureSupported() )
- {
- w = nearestPowerOfTwo( w );
- h = nearestPowerOfTwo( h );
}
- GLTexture* tex = new GLTexture( w, h );
- tex->setFilter( GL_LINEAR );
- tex->setWrapMode( GL_CLAMP_TO_EDGE );
- GLRenderTarget* target = new GLRenderTarget( tex );
- if( !target->valid() )
- mSupported = false;
- delete target;
- delete tex;
- }
- }
GLRenderTarget::GLRenderTarget(GLTexture* color)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic