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

Method drawFrame

client/ClientWin.cpp:173–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171
172
173void ClientWin::drawFrame(Frame *f)
174{
175 if(thread) thread->checkError();
176 if(!f->isXV)
177 {
178 CompressedFrame *c = (CompressedFrame *)f;
179 if((c->rhdr.flags == RR_RIGHT || c->hdr.flags == RR_LEFT) && !stereo)
180 {
181 stereo = true;
182 if(drawMethod != RR_DRAWOGL)
183 {
184 drawMethod = RR_DRAWOGL;
185 initGL();
186 }
187 }
188 if((c->hdr.flags == 0) && stereo)
189 {
190 stereo = false;
191 drawMethod = reqDrawMethod;
192 if(drawMethod == RR_DRAWAUTO) drawMethod = RR_DRAWX11;
193 initX11();
194 }
195 }
196 q.add(f);
197}
198
199
200void ClientWin::run(void)

Callers 1

runMethod · 0.80

Calls 2

checkErrorMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected