| 2735 | } |
| 2736 | |
| 2737 | int Viewer::getMSAA() const |
| 2738 | { |
| 2739 | int curSamples = 0; |
| 2740 | if ( !glInitialized_ ) |
| 2741 | return curSamples; |
| 2742 | if ( !sceneTexture_ || sceneTexture_->isBound() ) |
| 2743 | GL_EXEC( glGetIntegerv( GL_SAMPLES, &curSamples ) ); |
| 2744 | else |
| 2745 | { |
| 2746 | sceneTexture_->bind( false ); |
| 2747 | GL_EXEC( glGetIntegerv( GL_SAMPLES, &curSamples ) ); |
| 2748 | sceneTexture_->unbind(); |
| 2749 | } |
| 2750 | return curSamples; |
| 2751 | } |
| 2752 | |
| 2753 | void Viewer::requestChangeMSAA( int newMSAA ) |
| 2754 | { |
no test coverage detected