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:
AzaezelX 2025-08-11 23:21:20 -05:00
parent 0404b743f6
commit 00ee42e2a8
4 changed files with 18 additions and 17 deletions

View file

@ -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;