mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-16 00:01:53 +02:00
Fixed crash in release build.
This commit is contained in:
@@ -1618,13 +1618,16 @@ idImage *idImageManager::ImageFromFile( const char *_name, textureFilter_t filte
|
||||
}
|
||||
|
||||
|
||||
if (depth == TD_BUMP)
|
||||
if (image->texnum != idImage::TEXTURE_NOT_LOADED)
|
||||
{
|
||||
glTextureNormalMap(image->texnum, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
glTextureNormalMap(image->texnum, false);
|
||||
if (depth == TD_BUMP)
|
||||
{
|
||||
glTextureNormalMap(image->texnum, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
glTextureNormalMap(image->texnum, false);
|
||||
}
|
||||
}
|
||||
|
||||
return image;
|
||||
|
||||
Reference in New Issue
Block a user