| 407 | */ |
| 408 | |
| 409 | Texture* DeferredRenderTechnique::GetWorkTexture(unsigned int i) const |
| 410 | { |
| 411 | #if NAZARA_GRAPHICS_SAFE |
| 412 | if (i >= 2) |
| 413 | { |
| 414 | NazaraError("Work texture index out of range (" + String::Number(i) + " >= 2)"); |
| 415 | return nullptr; |
| 416 | } |
| 417 | #endif |
| 418 | |
| 419 | return m_workTextures[i]; |
| 420 | } |
| 421 | |
| 422 | /*! |
| 423 | * \brief Checks whether the pass is enable |