Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.5.0, 5.6.0 Alpha
-
Ubuntu 13.04
-
bc6d32686cbec7e225999f19ba5fb149507c8dec, e82e075e51db598c5a6fe4da399c2b1966a36110
Description
In qopenglframebufferobject.cpp function qt_gl_read_framebuffer_rgba8() uses:
funcs->glReadPixels(0, 0, w, h, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, img.bits());
which fails with error 1282 (INVALID_OPERATION).
This probably happens because:
GL_INVALID_OPERATION is generated if GL_READ_FRAMEBUFFER_BINDING is non-zero, the read framebuffer is complete, and the value of GL_SAMPLE_BUFFERS for the read framebuffer is greater than zero.