- GL code adjustments for reworked precaching.
This commit is contained in:
parent
60d9f38084
commit
1e9a6e667e
4 changed files with 4 additions and 22 deletions
|
|
@ -320,12 +320,12 @@ void FTexture::PrecacheGL(int cache)
|
|||
{
|
||||
if (gl_precache)
|
||||
{
|
||||
if (cache & 2)
|
||||
if (cache & (FTextureManager::HIT_Wall | FTextureManager::HIT_Flat | FTextureManager::HIT_Sky))
|
||||
{
|
||||
FMaterial * gltex = FMaterial::ValidateTexture(this, false);
|
||||
if (gltex) gltex->Precache();
|
||||
}
|
||||
if (cache & 4)
|
||||
if (cache & FTextureManager::HIT_Sprite)
|
||||
{
|
||||
FMaterial * gltex = FMaterial::ValidateTexture(this, true);
|
||||
if (gltex) gltex->Precache();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue