From 235d435b6b96322725866af4fd8077e1f4b5d649 Mon Sep 17 00:00:00 2001 From: aap Date: Mon, 23 Oct 2017 22:42:31 +0200 Subject: [PATCH] fixed (wdgl) native skin --- src/gl/wdgl.cpp | 2 +- src/skin.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gl/wdgl.cpp b/src/gl/wdgl.cpp index 7f95ecf..8e1782b 100644 --- a/src/gl/wdgl.cpp +++ b/src/gl/wdgl.cpp @@ -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); diff --git a/src/skin.cpp b/src/skin.cpp index 7d019b0..a869aa8 100644 --- a/src/skin.cpp +++ b/src/skin.cpp @@ -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;