| 633 | } |
| 634 | |
| 635 | bool CGraphics_Threaded::IsImageFormatRgba(const char *pContextName, const CImageInfo &Image) |
| 636 | { |
| 637 | if(Image.m_Format != CImageInfo::FORMAT_RGBA) |
| 638 | { |
| 639 | SWarning NewWarning; |
| 640 | char aContextNameQuoted[128]; |
| 641 | str_format(aContextNameQuoted, sizeof(aContextNameQuoted), "\"%s\"", pContextName); |
| 642 | str_format(NewWarning.m_aWarningMsg, sizeof(NewWarning.m_aWarningMsg), |
| 643 | Localize("The format of texture %s is not RGBA which will cause visual bugs."), aContextNameQuoted); |
| 644 | AddWarning(NewWarning); |
| 645 | return false; |
| 646 | } |
| 647 | return true; |
| 648 | } |
| 649 | |
| 650 | void CGraphics_Threaded::KickCommandBuffer() |
| 651 | { |
no test coverage detected