mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Cleanup and fixes
This commit is contained in:
parent
f55e7f7a22
commit
3c8d07a03e
10 changed files with 159 additions and 188 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#include "gfxTextureArray.h"
|
||||
|
||||
|
||||
|
||||
#include "gfxDevice.h"
|
||||
#include "gfxTextureManager.h"
|
||||
#include "bitmap/imageUtils.h"
|
||||
#include "console/console.h"
|
||||
|
||||
void GFXTextureArray::set(U32 width, U32 height, U32 size, GFXFormat format, U32 mipLevels)
|
||||
|
|
@ -12,7 +12,8 @@ void GFXTextureArray::set(U32 width, U32 height, U32 size, GFXFormat format, U32
|
|||
mHeight = height;
|
||||
mArraySize = size;
|
||||
mFormat = format;
|
||||
mMipLevels = mipLevels;
|
||||
mIsCompressed = ImageUtil::isCompressedFormat(mFormat);
|
||||
mMipLevels = getMax(mipLevels, static_cast<U32>(1));
|
||||
|
||||
mTextures.setSize(size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue