void REPLICATESPU_APIENTRY replicatespu_EndList(void) { GET_THREAD(thread); if (thread->currentContext->displayListMode == GL_FALSE) { crStateError(__LINE__, __FILE__, GL_INVALID_OPERATION, "replicate: EndList called without a preceding NewList"); return; } /* All okay. Tell the state tracker and the DLM that we've * finished a new display list. */ crStateEndList(); crDLMEndList(); /* Remember ourselves, too, so we don't have to waste a function * call to figure out whether we're in a list or not. */ thread->currentContext->displayListMode = GL_FALSE; thread->currentContext->displayListIdentifier = 0; /* Pack it up so we can send it to all the connected * VNC clients. */ if (replicate_spu.swap) { crPackEndListSWAP(); } else { crPackEndList(); } }
void SERVER_DISPATCH_APIENTRY crServerDispatchEndList(void) { cr_server.head_spu->dispatch_table.EndList(); crStateEndList(); }