diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 6e21a54ac6..ab4ed58a39 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -766,8 +766,8 @@ void SceneOpenGL::Texture::discard() void SceneOpenGL::Texture::findTarget() { unsigned int new_target = 0; - if( tfp_mode && glXQueryDrawable && bound_glxpixmap != None ) - glXQueryDrawable( display(), bound_glxpixmap, GLX_TEXTURE_TARGET_EXT, &new_target ); + if( tfp_mode && KWin::glXQueryDrawable && bound_glxpixmap != None ) + KWin::glXQueryDrawable( display(), bound_glxpixmap, GLX_TEXTURE_TARGET_EXT, &new_target ); else { if( NPOTTextureSupported() ||