From 965feeb9f39136d190c01bd6d91aca6cd1882a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Wed, 9 Nov 2011 18:03:10 +0100 Subject: [PATCH] kwin: fix glBlitFramebuffer resolution This function is also provided by GL_ARB_framebuffer_object. --- libkwineffects/kwinglutils_funcs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libkwineffects/kwinglutils_funcs.cpp b/libkwineffects/kwinglutils_funcs.cpp index 0c66dc148e..6d79507b49 100644 --- a/libkwineffects/kwinglutils_funcs.cpp +++ b/libkwineffects/kwinglutils_funcs.cpp @@ -226,11 +226,15 @@ void glResolveFunctions() glGetFramebufferAttachmentParameteriv = NULL; glGenerateMipmap = NULL; } - if (hasGLExtension("GL_EXT_framebuffer_blit")) { + + if (hasGLExtension("GL_ARB_framebuffer_object")) { + glBlitFramebuffer = (glBlitFramebuffer_func) getProcAddress("glBlitFramebuffer"); + } else if (hasGLExtension("GL_EXT_framebuffer_blit")) { glBlitFramebuffer = (glBlitFramebuffer_func) getProcAddress("glBlitFramebufferEXT"); } else { glBlitFramebuffer = NULL; } + if (hasGLExtension("GL_ARB_shading_language_100") && hasGLExtension("GL_ARB_fragment_shader")) { GL_RESOLVE_WITH_EXT(glCreateShader, glCreateShaderObjectARB); GL_RESOLVE_WITH_EXT(glShaderSource, glShaderSourceARB);