| 320 | } |
| 321 | |
| 322 | VertexLayout* ProgramState::getMutableVertexLayout() |
| 323 | { |
| 324 | if (_ownVertexLayout || !_vertexLayout->isValid()) |
| 325 | return _vertexLayout; |
| 326 | |
| 327 | _ownVertexLayout = true; |
| 328 | return _vertexLayout = new VertexLayout(); |
| 329 | } |
| 330 | |
| 331 | void ProgramState::setSharedVertexLayout(VertexLayout* vertexLayout) |
| 332 | { |