We need NPOT textures.

BUG: 155833


svn path=/trunk/KDE/kdebase/workspace/; revision=762709
This commit is contained in:
Luboš Luňák 2008-01-17 18:21:58 +00:00
parent cef15afe8a
commit caf1627047

View file

@ -134,9 +134,14 @@ SceneOpenGL::SceneOpenGL( Workspace* ws )
return; // error
if( !initRenderingContext())
return; // error
// Initialize OpenGL
initGL();
if( !hasGLExtension( "GL_ARB_texture_non_power_of_two" )
&& !hasGLExtension( "GL_ARB_texture_rectangle" ))
{
kdWarning( 1212 ) << "GL_ARB_texture_non_power_of_two and GL_ARB_texture_rectangle missing";
return; // error
}
if( db )
glDrawBuffer( GL_BACK );
// Check whether certain features are supported