Kaydet (Commit) e00d7766 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Andras Timar

opengl: check framebuffer completeness

Change-Id: Idd80b7390694038ab0913edab0e496593beb0e15
(cherry picked from commit 7993663c)
Reviewed-on: https://gerrit.libreoffice.org/18625Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst f56e4e62
...@@ -68,8 +68,11 @@ void OpenGLFramebuffer::AttachTexture( const OpenGLTexture& rTexture ) ...@@ -68,8 +68,11 @@ void OpenGLFramebuffer::AttachTexture( const OpenGLTexture& rTexture )
mnAttachedTexture = rTexture.Id(); mnAttachedTexture = rTexture.Id();
mnWidth = rTexture.GetWidth(); mnWidth = rTexture.GetWidth();
mnHeight = rTexture.GetHeight(); mnHeight = rTexture.GetHeight();
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mnAttachedTexture, 0);
mnAttachedTexture, 0 ); if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
{
SAL_WARN("vcl.opengl", "Framebuffer incomplete");
}
CHECK_GL_ERROR(); CHECK_GL_ERROR();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment