| 255 | } |
| 256 | |
| 257 | Channel ChannelManager::find() const { |
| 258 | |
| 259 | Channel channel = NoChannel; |
| 260 | |
| 261 | // find free channel |
| 262 | if ((mOccupiedChannels & Alpha) == 0) { |
| 263 | channel = Alpha; |
| 264 | } else if (OPENCSG_HAS_EXT(ARB_texture_env_dot3) || GLAD_GL_VERSION_1_3) { |
| 265 | if ((mOccupiedChannels & Red) == 0) { |
| 266 | channel = Red; |
| 267 | } else if ((mOccupiedChannels & Green) == 0) { |
| 268 | channel = Green; |
| 269 | } else if ((mOccupiedChannels & Blue) == 0) { |
| 270 | channel = Blue; |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | return channel; |
| 275 | } |
| 276 | |
| 277 | Channel ChannelManager::request() { |
| 278 | if (!mInOffscreenBuffer) { |
no outgoing calls
no test coverage detected