mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Implement/match LegoPartPresenter::Read (#642)
* WIP * Match * Remove TODO * Fix
This commit is contained in:

committed by
GitHub

parent
9e2f37e7ca
commit
9f875d01e5
@@ -63,6 +63,7 @@ MxResult LegoModelPresenter::CreateROI(MxDSChunk* p_chunk)
|
||||
MxMatrix mat;
|
||||
LegoChar* textureName = NULL;
|
||||
LegoTexture* texture = NULL;
|
||||
LegoTextureInfo* textureInfo = NULL;
|
||||
LegoS32 hardwareMode = VideoManager()->GetDirect3D()->AssignedDevice()->GetHardwareMode();
|
||||
|
||||
if (m_roi) {
|
||||
@@ -137,7 +138,7 @@ MxResult LegoModelPresenter::CreateROI(MxDSChunk* p_chunk)
|
||||
|
||||
if (!skipTextures) {
|
||||
if (TextureContainer()->Get(textureName) == NULL) {
|
||||
LegoTextureInfo* textureInfo = LegoTextureInfo::Create(textureName, texture);
|
||||
textureInfo = LegoTextureInfo::Create(textureName, texture);
|
||||
|
||||
if (textureInfo == NULL) {
|
||||
goto done;
|
||||
|
Reference in New Issue
Block a user