============ R_GetCommandBuffer Returns memory for a command buffer (stretchPicCommand_t, drawSurfsCommand_t, etc) and links it to the end of the current command chain. ============ */
| 166 | ============ |
| 167 | */ |
| 168 | void *R_GetCommandBuffer( int bytes ) { |
| 169 | emptyCommand_t *cmd; |
| 170 | |
| 171 | cmd = (emptyCommand_t *)R_FrameAlloc( bytes ); |
| 172 | cmd->next = NULL; |
| 173 | frameData->cmdTail->next = &cmd->commandId; |
| 174 | frameData->cmdTail = cmd; |
| 175 | |
| 176 | return (void *)cmd; |
| 177 | } |
| 178 | |
| 179 | |
| 180 | /* |
no test coverage detected