| 171 | |
| 172 | |
| 173 | void 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 | |
| 200 | void ClientWin::run(void) |
no test coverage detected