2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

all known bugs fixed and loaded maps work correctly now.

This commit is contained in:
LJW-Dev
2025-08-28 23:34:06 +08:00
committed by Jan Laupetin
parent b0756ef8e1
commit 10da8b27b7
18 changed files with 40278 additions and 350 deletions
@@ -135,8 +135,8 @@ namespace
printf("ERROR: Cant find pixel shader %s\n", psFileName.c_str());
return AssetCreationResult::Failure();
}
currPass->pixelShader->prog.loadDef.programSize = psFile.m_length;
currPass->pixelShader->prog.loadDef.program = new char[psFile.m_length];
currPass->pixelShader->prog.loadDef.programSize = (unsigned int)psFile.m_length;
currPass->pixelShader->prog.loadDef.program = new char[(unsigned int)psFile.m_length];
psFile.m_stream->read(currPass->pixelShader->prog.loadDef.program, psFile.m_length);
}
@@ -159,8 +159,8 @@ namespace
printf("ERROR: Cant find vertex shader %s\n", vsFileName.c_str());
return AssetCreationResult::Failure();
}
currPass->vertexShader->prog.loadDef.programSize = vsFile.m_length;
currPass->vertexShader->prog.loadDef.program = new char[vsFile.m_length];
currPass->vertexShader->prog.loadDef.programSize = (unsigned int)vsFile.m_length;
currPass->vertexShader->prog.loadDef.program = new char[(unsigned int)vsFile.m_length];
vsFile.m_stream->read(currPass->vertexShader->prog.loadDef.program, vsFile.m_length);
}
}