On 09/09/14 02:59 PM, Nathan Kidd wrote: > You'll notice that glReadPixels() comments out the emulateColorIndex() > check. When glReadPixels() is called by VirtualDrawable::readPixels() > the current context is the *temp* context, so glxCurrentContext()-based > lookups fail. This means that up to now an attempt to glReadPixels() on > a remote overlay (if that even works?) would have failed (since > overlayCurrent() would never be true).
Thinking about this later, the above does not make sense. ::readPixels would never have been called in an overlayCurrent() situation (since overlay is always remote). If the app makes a direct glReadPixels() call then the current context lookup would have worked. > If the format is GL_COLOR_INDEX > then we'll get GL_INVALID_OPERATION unless the current context/drawable > is CI. Thus, for the new "is current context CI" condition, there is no need to check. If the format is already specified as CI then at best failing the "is current context CI" condition would get an error returned. Revised bottom line: glReadPixels() should check ctxhash.overlayCurrent() like it did before. -Nathan ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ VirtualGL-Devel mailing list VirtualGL-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtualgl-devel