| 1653 | } |
| 1654 | |
| 1655 | vtkTypeBool vtkXOpenGLRenderWindow::IsDirect() |
| 1656 | { |
| 1657 | this->MakeCurrent(); |
| 1658 | // load GLX |
| 1659 | if (!this->EnsureGLX()) |
| 1660 | { |
| 1661 | return false; |
| 1662 | } |
| 1663 | this->UsingHardware = 0; |
| 1664 | if (this->DisplayId && this->Internal->ContextId) |
| 1665 | { |
| 1666 | this->UsingHardware = glXIsDirect(this->DisplayId, this->Internal->ContextId) ? 1 : 0; |
| 1667 | } |
| 1668 | return this->UsingHardware; |
| 1669 | } |
| 1670 | |
| 1671 | void vtkXOpenGLRenderWindow::SetWindowName(const char* cname) |
| 1672 | { |
nothing calls this directly
no test coverage detected