| 50 | #include "buildtiles.h" |
| 51 | |
| 52 | static void PrecacheTex(FGameTexture* tex, int palid) |
| 53 | { |
| 54 | if (!tex || !tex->isValid()) return; |
| 55 | int scaleflags = 0; |
| 56 | if (shouldUpscale(tex, UF_Texture)) scaleflags |= CTF_Upscale; |
| 57 | |
| 58 | auto mat = FMaterial::ValidateTexture(tex, scaleflags); |
| 59 | screen->PrecacheMaterial(mat, palid); |
| 60 | } |
| 61 | |
| 62 | static void doprecache(FTextureID texid, int palette) |
| 63 | { |
no test coverage detected