kwin: fix glBlitFramebuffer resolution
This function is also provided by GL_ARB_framebuffer_object.
This commit is contained in:
parent
d858df569c
commit
965feeb9f3
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue