mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix NormalizeVertices() for indexed vertices.
This commit is contained in:
parent
a0461f1dcd
commit
f0ef073307
1 changed files with 2 additions and 2 deletions
|
@ -266,7 +266,7 @@ u32 DrawEngineCommon::NormalizeVertices(u8 *outPtr, u8 *bufPtr, const u8 *inPtr,
|
||||||
if (!g_Config.bSoftwareSkinning && (vertType & GE_VTYPE_WEIGHT_MASK) != GE_VTYPE_WEIGHT_NONE) {
|
if (!g_Config.bSoftwareSkinning && (vertType & GE_VTYPE_WEIGHT_MASK) != GE_VTYPE_WEIGHT_NONE) {
|
||||||
int numBoneWeights = vertTypeGetNumBoneWeights(vertType);
|
int numBoneWeights = vertTypeGetNumBoneWeights(vertType);
|
||||||
for (int i = lowerBound; i <= upperBound; i++) {
|
for (int i = lowerBound; i <= upperBound; i++) {
|
||||||
reader.Goto(i);
|
reader.Goto(i - lowerBound);
|
||||||
SimpleVertex &sv = sverts[i];
|
SimpleVertex &sv = sverts[i];
|
||||||
if (vertType & GE_VTYPE_TC_MASK) {
|
if (vertType & GE_VTYPE_TC_MASK) {
|
||||||
reader.ReadUV(sv.uv);
|
reader.ReadUV(sv.uv);
|
||||||
|
@ -313,7 +313,7 @@ u32 DrawEngineCommon::NormalizeVertices(u8 *outPtr, u8 *bufPtr, const u8 *inPtr,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (int i = lowerBound; i <= upperBound; i++) {
|
for (int i = lowerBound; i <= upperBound; i++) {
|
||||||
reader.Goto(i);
|
reader.Goto(i - lowerBound);
|
||||||
SimpleVertex &sv = sverts[i];
|
SimpleVertex &sv = sverts[i];
|
||||||
if (vertType & GE_VTYPE_TC_MASK) {
|
if (vertType & GE_VTYPE_TC_MASK) {
|
||||||
reader.ReadUV(sv.uv);
|
reader.ReadUV(sv.uv);
|
||||||
|
|
Loading…
Add table
Reference in a new issue