mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
fix directx rendertarget crash
asset brower previews were asserting due to a cornercase rt assignment also ditch mipgen for rts targetting a texture profile that's marked as nomip, and adjust hdr uopsampling shader to compensate for overdarks
This commit is contained in:
parent
0404b743f6
commit
00ee42e2a8
4 changed files with 18 additions and 17 deletions
|
|
@ -1418,7 +1418,7 @@ void GFXTextureManager::_validateTexParams( const U32 width, const U32 height,
|
|||
{
|
||||
// If a texture is not power-of-2 in size for both dimensions, it must
|
||||
// have only 1 mip level.
|
||||
if (profile->isRenderTarget())
|
||||
if (profile->isRenderTarget() && !profile->noMip())
|
||||
{
|
||||
if (inOutNumMips == 0) //auto
|
||||
inOutNumMips = mFloor(mLog2(mMax(width, height))) + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue