------------------------------------------------------------------------------
| 424 | |
| 425 | //------------------------------------------------------------------------------ |
| 426 | void vtkOpenGLContextDevice2D::BufferIdModeEnd() |
| 427 | { |
| 428 | assert("pre: started" && this->GetBufferIdMode()); |
| 429 | |
| 430 | vtkOpenGLClearErrorMacro(); |
| 431 | |
| 432 | // Assume the renderer has been set previously during rendering (sse Begin()) |
| 433 | int lowerLeft[2]; |
| 434 | int usize, vsize; |
| 435 | this->Renderer->GetTiledSizeAndOrigin(&usize, &vsize, lowerLeft, lowerLeft + 1); |
| 436 | this->BufferId->SetValues(lowerLeft[0], lowerLeft[1]); |
| 437 | |
| 438 | this->ProjectionMatrix->Pop(); |
| 439 | this->PopMatrix(); |
| 440 | |
| 441 | this->Storage->RestoreGLState(this->RenderWindow->GetState(), true); |
| 442 | |
| 443 | this->BufferId = nullptr; |
| 444 | |
| 445 | vtkOpenGLCheckErrorMacro("failed after BufferIdModeEnd"); |
| 446 | |
| 447 | assert("post: done" && !this->GetBufferIdMode()); |
| 448 | } |
| 449 | |
| 450 | void vtkOpenGLContextDevice2D::SetMatrices(vtkShaderProgram* prog) |
| 451 | { |
nothing calls this directly
no test coverage detected