Merge pull request #694 from unknownbrackets/gpu-minor

Set VertexReader's vtype_ to prevent oddness
This commit is contained in:
Henrik Rydgård 2013-02-14 09:52:34 -08:00
commit de626e329b
2 changed files with 2 additions and 2 deletions

View File

@ -454,7 +454,7 @@ void TransformDrawEngine::SoftwareTransformAndDraw(
float fog_end = getFloat24(gstate.fog1);
float fog_slope = getFloat24(gstate.fog2);
VertexReader reader(decoded, decVtxFormat);
VertexReader reader(decoded, decVtxFormat, vertType);
for (int index = 0; index < maxIndex; index++) {
reader.Goto(index);

View File

@ -186,7 +186,7 @@ public:
class VertexReader
{
public:
VertexReader(u8 *base, const DecVtxFormat &decFmt) : base_(base), data_(base), decFmt_(decFmt) {}
VertexReader(u8 *base, const DecVtxFormat &decFmt, int vtype) : base_(base), data_(base), decFmt_(decFmt), vtype_(vtype) {}
void ReadPos(float pos[3]) {
switch (decFmt_.posfmt) {