-------------------------------------------------------------------------------
| 118 | |
| 119 | //------------------------------------------------------------------------------- |
| 120 | void CBackgroundPainter::SetColor(D3DCOLOR p_clrNew) { |
| 121 | if (TEXTURE_CUBE == eMode) { |
| 122 | RemoveSBDeps(); |
| 123 | } |
| 124 | |
| 125 | clrColor = p_clrNew; |
| 126 | eMode = SIMPLE_COLOR; |
| 127 | |
| 128 | if (pcTexture) { |
| 129 | pcTexture->Release(); |
| 130 | pcTexture = nullptr; |
| 131 | } |
| 132 | } |
| 133 | //------------------------------------------------------------------------------- |
| 134 | void CBackgroundPainter::RemoveSBDeps() { |
| 135 | MODE e = eMode; |
no test coverage detected