<div dir="ltr">I'm trying to use glReadPixels in my python3 application (python 3.6.1, Qt 5.8.0, and PyQt 5.8.0).<div><br>Here's a segment of my code:<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>self.vp = QOpenGLVersionProfile()self.vp.setVersion(2,1)</div><div>self.glFunc = QOpenGLContext.currentContext().versionFunctions(self.vp)</div><div>self.glFunc.glReadPixels(...)</div></blockquote><div><br></div><div>Regardless of what I pass to the function, I get an error:<br><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>AttributeError: 'QOpenGLFunctions_2_1' object has no attribute 'glReadPixels'</div></blockquote><div><div><br></div></div><div><div>Running <i>print(dir(self.glFunc)</i> returns a huge list of functions but does not include glReadPixels or any variation that I can find (there's GL_READ_PIXELS but it's an int).</div><div><br></div><div>Am I looking in the wrong place for this function?  I posted to a Qt forum but have not received an answer, so I'm hoping someone can help me here!</div><div><br></div></div><div>Thanks!</div><div>Jayson</div></div></div>