https://bugs.documentfoundation.org/show_bug.cgi?id=93772
Bug ID: 93772
Summary: switching context does not un-bind framebuffers
correctly ...
Product: LibreOffice
Version: unspecified
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: graphics stack
Assignee: [email protected]
Reporter: [email protected]
This leaves the code with the impression that a framebuffer is bound to the
previous context - and stops us binding it again - which looks problematic:
151523 glDebugMessageInsert(source = GL_DEBUG_SOURCE_APPLICATION, type =
GL_DEBUG_TYPE_OTHER, id = 1, severity = GL_DEBUG_SEVERITY_LOW, length = 55, buf
= "PaintHelper::DoPaint on class SvxColorValueSet '' start")
...
151563 glBindFramebuffer(target = GL_FRAMEBUFFER, framebuffer = 6)
151564 glDebugMessageInsert(source = GL_DEBUG_SOURCE_APPLICATION, type =
GL_DEBUG_TYPE_OTHER, id = 1, severity = GL_DEBUG_SEVERITY_LOW, length = 21, buf
= "Binding framebuffer 6")
151567 glFramebufferTexture2D(target = GL_FRAMEBUFFER, attachment =
GL_COLOR_ATTACHMENT0, textarget = GL_TEXTURE_2D, texture = 0, level = 0)
151569 glDeleteTextures(n = 1, textures = &152)
151570 glDebugMessageInsert(source = GL_DEBUG_SOURCE_APPLICATION, type =
GL_DEBUG_TYPE_OTHER, id = 1, severity = GL_DEBUG_SEVERITY_LOW, length = 10, buf
= "::drawRect")
151574 wglMakeCurrent(hdc = 0x69011402, hglrc = 0x10003) = TRUE
151576 glGenTextures(n = 1, textures = &152)
151577 glBindTexture(target = GL_TEXTURE_2D, texture = 152)
151578 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_WRAP_S, param
= GL_CLAMP_TO_EDGE)
151579 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_WRAP_T, param
= GL_CLAMP_TO_EDGE)
151580 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MIN_FILTER,
param = GL_NEAREST)
151581 glTexParameteri(target = GL_TEXTURE_2D, pname = GL_TEXTURE_MAG_FILTER,
param = GL_NEAREST)
151582 glTexImage2D(target = GL_TEXTURE_2D, level = 0, internalformat =
GL_RGBA, width = 222, height = 16, border = 0, format = GL_RGBA, type =
GL_UNSIGNED_BYTE, pixels = NULL)
151583 glBindTexture(target = GL_TEXTURE_2D, texture = 0)
151585 glDebugMessageInsert(source = GL_DEBUG_SOURCE_APPLICATION, type =
GL_DEBUG_TYPE_OTHER, id = 1, severity = GL_DEBUG_SEVERITY_LOW, length = 38, buf
= "Attaching texture 152 to framebuffer 6")
151586 glFramebufferTexture2D(target = GL_FRAMEBUFFER, attachment =
GL_COLOR_ATTACHMENT0, textarget = GL_TEXTURE_2D, texture = 152, level = 0)
151587 glGetError() = GL_INVALID_OPERATION
Unless I'm mistaken doing a wglMakeCurrent switches context, and we should
re-bind the framebuffer to the next context before trying to bind a texture
there.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs