mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Update ImageAsset.cpp
early out of generateTexture
This commit is contained in:
parent
73ad92b757
commit
774bd874b5
1 changed files with 4 additions and 0 deletions
|
|
@ -531,6 +531,10 @@ GFXTexHandle ImageAsset::getTexture(GFXTextureProfile* requestedProfile)
|
|||
|
||||
void ImageAsset::generateTexture(void)
|
||||
{
|
||||
// already have a generated texture, get out.
|
||||
if (mTextureHandle.isValid())
|
||||
return;
|
||||
|
||||
// implement some defaults, eventually SRGB should be optional.
|
||||
U32 flags = GFXTextureProfile::Static | GFXTextureProfile::SRGB;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue