MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / makePassive

Method makePassive

server/VirtualWin.cpp:657–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657void VirtualWin::makePassive(Frame *f, int drawBuf, GLenum glFormat,
658 int stereoMode)
659{
660 stereoFrame.init(f->hdr, f->pf->id, f->flags, true);
661 readPixels(0, 0, stereoFrame.hdr.framew, stereoFrame.pitch,
662 stereoFrame.hdr.frameh, glFormat, stereoFrame.pf, stereoFrame.bits,
663 LEYE(drawBuf), true);
664 readPixels(0, 0, stereoFrame.hdr.framew, stereoFrame.pitch,
665 stereoFrame.hdr.frameh, glFormat, stereoFrame.pf, stereoFrame.rbits,
666 REYE(drawBuf), true);
667 profPassive.startFrame();
668 f->makePassive(stereoFrame, stereoMode);
669 profPassive.endFrame(f->hdr.framew * f->hdr.frameh, 0, 1);
670}
671
672
673void VirtualWin::readPixels(GLint x, GLint y, GLint width, GLint pitch,

Callers

nothing calls this directly

Calls 4

readPixelsFunction · 0.85
startFrameMethod · 0.80
endFrameMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected