kwin: fix glBlitFramebuffer resolution

This function is also provided by GL_ARB_framebuffer_object.
This commit is contained in:
Fredrik Höglund 2011-11-09 18:03:10 +01:00
parent d858df569c
commit 965feeb9f3

View file

@ -226,11 +226,15 @@ void glResolveFunctions()
glGetFramebufferAttachmentParameteriv = NULL; glGetFramebufferAttachmentParameteriv = NULL;
glGenerateMipmap = 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"); glBlitFramebuffer = (glBlitFramebuffer_func) getProcAddress("glBlitFramebufferEXT");
} else { } else {
glBlitFramebuffer = NULL; glBlitFramebuffer = NULL;
} }
if (hasGLExtension("GL_ARB_shading_language_100") && hasGLExtension("GL_ARB_fragment_shader")) { if (hasGLExtension("GL_ARB_shading_language_100") && hasGLExtension("GL_ARB_fragment_shader")) {
GL_RESOLVE_WITH_EXT(glCreateShader, glCreateShaderObjectARB); GL_RESOLVE_WITH_EXT(glCreateShader, glCreateShaderObjectARB);
GL_RESOLVE_WITH_EXT(glShaderSource, glShaderSourceARB); GL_RESOLVE_WITH_EXT(glShaderSource, glShaderSourceARB);