Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aap committed Feb 21, 2023
1 parent 8271c23 commit 05db81b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ Matrix::makeRotation(Matrix *dst, const V3d *axis, float32 angle)
dst->pos.y = 0.0;
dst->pos.z = 0.0;
dst->flags = TYPEORTHONORMAL;
dst->pad1 = dst->pad2 = dst->pad3 = 0;
}

/* q must be normalized */
Expand Down Expand Up @@ -616,6 +617,7 @@ Matrix::makeRotation(Matrix *dst, const Quat &q)
dst->pos.y = 0.0;
dst->pos.z = 0.0;
dst->flags = TYPEORTHONORMAL;
dst->pad1 = dst->pad2 = dst->pad3 = 0;
}

float32
Expand Down
3 changes: 2 additions & 1 deletion src/ps2/rwps2.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ extern Device renderdevice;
struct Im2DVertex
{
float32 x, y, z, w;
uint32 r, g, b, a;
float32 u, v, q, PAD;
uint32 r, g, b, a;

void setScreenX(float32 x) { this->x = x; }
void setScreenY(float32 y) { this->y = y; }
Expand Down Expand Up @@ -121,6 +121,7 @@ struct PipeAttribute
uint32 attrib;
};

extern bool adcHack; // use MASK write to initialize ADC field in vertex cluster
extern PipeAttribute attribXYZ;
extern PipeAttribute attribXYZW;
extern PipeAttribute attribUV;
Expand Down

0 comments on commit 05db81b

Please sign in to comment.