mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
tracks wether or not a cubemap has been fully intitialised (as well as defautls for other shared entries). skips out including an uninitialized cuebmap in probe array (inthoery. in practice, need to root arround a bit more)
This commit is contained in:
parent
5b7e2edb66
commit
26a89882c7
5 changed files with 19 additions and 4 deletions
|
|
@ -126,6 +126,7 @@ void GFXGLCubemap::initStatic(GFXTexHandle* faces)
|
|||
glGenTextures(1, &mCubemap);
|
||||
fillCubeTextures(faces);
|
||||
}
|
||||
mInitialized = true;
|
||||
}
|
||||
|
||||
void GFXGLCubemap::initStatic( DDSFile *dds )
|
||||
|
|
@ -179,6 +180,7 @@ void GFXGLCubemap::initStatic( DDSFile *dds )
|
|||
GFXGLTextureFormat[mFaceFormat], GFXGLTextureType[mFaceFormat], dds->mSurfaces[i]->mMips[mip]);
|
||||
}
|
||||
}
|
||||
mInitialized = true;
|
||||
}
|
||||
|
||||
void GFXGLCubemap::initDynamic(U32 texSize, GFXFormat faceFormat, U32 mipLevels)
|
||||
|
|
@ -220,6 +222,7 @@ void GFXGLCubemap::initDynamic(U32 texSize, GFXFormat faceFormat, U32 mipLevels)
|
|||
|
||||
if( !isCompressed )
|
||||
glGenerateMipmap(GL_TEXTURE_CUBE_MAP);
|
||||
mInitialized = true;
|
||||
}
|
||||
|
||||
void GFXGLCubemap::zombify()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue