mirror of https://github.com/aap/librw.git
fixed (wdgl) native skin
This commit is contained in:
parent
b62da21ef8
commit
235d435b6b
|
@ -563,7 +563,7 @@ Stream*
|
|||
writeNativeSkin(Stream *stream, int32 len, void *object, int32 offset)
|
||||
{
|
||||
writeChunkHeader(stream, ID_STRUCT, len-12);
|
||||
stream->writeU32(PLATFORM_WDGL);
|
||||
stream->writeU32(PLATFORM_GL);
|
||||
Skin *skin = *PLUGINOFFSET(Skin*, object, offset);
|
||||
stream->writeI32(skin->numBones);
|
||||
stream->write(skin->inverseMatrices, skin->numBones*64);
|
||||
|
|
|
@ -180,11 +180,11 @@ writeSkin(Stream *stream, int32 len, void *object, int32 offset, int32)
|
|||
|
||||
if(geometry->instData){
|
||||
if(geometry->instData->platform == PLATFORM_PS2)
|
||||
ps2::writeNativeSkin(stream, len, object, offset);
|
||||
return ps2::writeNativeSkin(stream, len, object, offset);
|
||||
else if(geometry->instData->platform == PLATFORM_WDGL)
|
||||
wdgl::writeNativeSkin(stream, len, object, offset);
|
||||
return wdgl::writeNativeSkin(stream, len, object, offset);
|
||||
else if(geometry->instData->platform == PLATFORM_XBOX)
|
||||
xbox::writeNativeSkin(stream, len, object, offset);
|
||||
return xbox::writeNativeSkin(stream, len, object, offset);
|
||||
else{
|
||||
assert(0 && "unsupported native skin platform");
|
||||
return nil;
|
||||
|
|
Loading…
Reference in New Issue