mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
Fix last commit
This commit is contained in:
parent
a9868556a3
commit
5a72b13822
7
third_party/gldc/src/sh4.c
vendored
7
third_party/gldc/src/sh4.c
vendored
@ -21,9 +21,9 @@ static GL_FORCE_INLINE float _glFastInvert(float x) {
|
||||
return sh4_fsrra(x * x);
|
||||
}
|
||||
|
||||
#define PushVertex(v) \
|
||||
_glPerspectiveDivideVertex(v); \
|
||||
_glPushHeaderOrVertex(v);
|
||||
#define PushVertex(vtx) \
|
||||
_glPerspectiveDivideVertex(vtx); \
|
||||
_glPushHeaderOrVertex(vtx);
|
||||
|
||||
static GL_FORCE_INLINE void _glPerspectiveDivideVertex(Vertex* vertex) {
|
||||
const float f = _glFastInvert(vertex->w);
|
||||
@ -283,7 +283,6 @@ static void SubmitClipped(Vertex* v0, Vertex* v1, Vertex* v2, Vertex* v3, uint8_
|
||||
|
||||
PushVertex(v2);
|
||||
PushVertex(v3);
|
||||
PushVertex(v3);
|
||||
PushVertex(v1);
|
||||
PushVertex(a);
|
||||
PushVertex(b);
|
||||
|
2
third_party/gldc/src/state.c
vendored
2
third_party/gldc/src/state.c
vendored
@ -97,7 +97,7 @@ void apply_poly_header(pvr_poly_hdr_t* dst, int list_type) {
|
||||
} else {
|
||||
dst->mode2 |= (txr_alpha << PVR_TA_PM2_TXRALPHA_SHIFT) & PVR_TA_PM2_TXRALPHA_MASK;
|
||||
dst->mode2 |= (PVR_FILTER_NEAREST << PVR_TA_PM2_FILTER_SHIFT) & PVR_TA_PM2_FILTER_MASK;
|
||||
dst->mode2 |= (DEFAULT_MIPMAP_BIAS << PVR_TA_PM2_MIPBIAS_SHIFT) & PVR_TA_PM2_MIPBIAS_MASK;
|
||||
dst->mode2 |= (PVR_MIPBIAS_NORMAL << PVR_TA_PM2_MIPBIAS_SHIFT) & PVR_TA_PM2_MIPBIAS_MASK;
|
||||
dst->mode2 |= (PVR_TXRENV_MODULATEALPHA << PVR_TA_PM2_TXRENV_SHIFT) & PVR_TA_PM2_TXRENV_MASK;
|
||||
|
||||
dst->mode2 |= (DimensionFlag(tx1->width) << PVR_TA_PM2_USIZE_SHIFT) & PVR_TA_PM2_USIZE_MASK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user