Improve terrain rendering, handle bug with no detail

This commit is contained in:
Lukas Aldershaab 2021-01-04 20:06:17 +01:00
parent 27641b16ca
commit 481e2a7230
5 changed files with 74 additions and 24 deletions

View file

@ -49,6 +49,7 @@ void GFXTextureArray::set(U32 width, U32 height, U32 size, GFXFormat format, U32
bool GFXTextureArray::fromTextureArray(const Vector<GFXTexHandle>& textureArray, U32 capacity)
{
PROFILE_SCOPE(GFXTextureArray_fromTextureArray)
bool success = true;
// Not initialized, infer it from the given array of textures
@ -114,6 +115,7 @@ bool GFXTextureArray::fromTextureArray(const Vector<GFXTexHandle>& textureArray,
void GFXTextureArray::setTexture(const GFXTexHandle& texture, U32 slot)
{
PROFILE_SCOPE(GFXTextureArray_setTexture)
GFXTexHandle handle = texture;
if (texture->getPath().isNotEmpty())
{