| 1470 | } |
| 1471 | |
| 1472 | int vtkOpenGLFramebufferObject::GetMultiSamples() |
| 1473 | { |
| 1474 | int abuff = this->ActiveBuffers[0]; |
| 1475 | foIter colorBufferIt = this->ColorBuffers.find(abuff); |
| 1476 | if (colorBufferIt == this->ColorBuffers.end()) |
| 1477 | { |
| 1478 | // vtkFOInfo::GetSamples() returns 0 if no Texture and Renderbuffer is set, |
| 1479 | // therefore we return the same value if no active framebuffer object is found |
| 1480 | return 0; |
| 1481 | } |
| 1482 | return colorBufferIt->second->GetSamples(); |
| 1483 | } |
| 1484 | |
| 1485 | bool vtkOpenGLFramebufferObject::PopulateFramebuffer(int width, int height) |
| 1486 | { |