///////////////////////////////////////////////////////
| 217 | |
| 218 | //////////////////////////////////////////////////////////// |
| 219 | void RenderTarget::clearStencil(StencilValue stencilValue) |
| 220 | { |
| 221 | if (RenderTargetImpl::isActive(m_id) || setActive(true)) |
| 222 | { |
| 223 | // Unbind texture to fix RenderTexture preventing clear |
| 224 | applyTexture(nullptr); |
| 225 | |
| 226 | // Apply the view (scissor testing can affect clearing) |
| 227 | if (!m_cache.enable || m_cache.viewChanged) |
| 228 | applyCurrentView(); |
| 229 | |
| 230 | glCheck(glClearStencil(static_cast<int>(stencilValue.value))); |
| 231 | glCheck(glClear(GL_STENCIL_BUFFER_BIT)); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | |
| 236 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected