kwin: Fix FBO function resolution for core contexts
This commit is contained in:
parent
855a7cc897
commit
cb81e11375
2 changed files with 4 additions and 4 deletions
|
@ -940,8 +940,8 @@ void GLRenderTarget::initStatic()
|
|||
sSupported = true;
|
||||
s_blitSupported = false;
|
||||
#else
|
||||
sSupported = hasGLExtension("GL_EXT_framebuffer_object") && glFramebufferTexture2D;
|
||||
s_blitSupported = hasGLExtension("GL_EXT_framebuffer_blit");
|
||||
sSupported = hasGLVersion(3, 0) || hasGLExtension("GL_ARB_framebuffer_object") || hasGLExtension("GL_EXT_framebuffer_object");
|
||||
s_blitSupported = hasGLVersion(3, 0) || hasGLExtension("GL_ARB_framebuffer_object") || hasGLExtension("GL_EXT_framebuffer_blit");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ void glResolveFunctions(OpenGLPlatformInterface platformInterface)
|
|||
glTextureUnitsCount = 0;
|
||||
}
|
||||
|
||||
if (hasGLExtension("GL_ARB_framebuffer_object")) {
|
||||
if (hasGLVersion(3, 0) || hasGLExtension("GL_ARB_framebuffer_object")) {
|
||||
// see http://www.opengl.org/registry/specs/ARB/framebuffer_object.txt
|
||||
GL_RESOLVE(glIsRenderbuffer);
|
||||
GL_RESOLVE(glBindRenderbuffer);
|
||||
|
@ -316,7 +316,7 @@ void glResolveFunctions(OpenGLPlatformInterface platformInterface)
|
|||
glGenerateMipmap = NULL;
|
||||
}
|
||||
|
||||
if (hasGLExtension("GL_ARB_framebuffer_object")) {
|
||||
if (hasGLVersion(3, 0) || hasGLExtension("GL_ARB_framebuffer_object")) {
|
||||
// see http://www.opengl.org/registry/specs/ARB/framebuffer_object.txt
|
||||
GL_RESOLVE(glBlitFramebuffer);
|
||||
} else if (hasGLExtension("GL_EXT_framebuffer_blit")) {
|
||||
|
|
Loading…
Reference in a new issue