diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index 23e4d5bbd..4d1ee83c7 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -171,7 +171,6 @@ struct Fragment }; static VERT* verts[MAX_CLIPPED_VERTS]; -static VERT* sortedVerts[MAX_CLIPPED_VERTS]; INLINE static void SubmitVertex(int vert_index, VERT& rawvert) { @@ -391,11 +390,11 @@ static void alphaBlend(Fragment::Color & dst, const Fragment::Color & src) } } -void pixel(int adr,float r, float g, float b, float invu, float invv, float w, float z) { +static void pixel(int adr,float r, float g, float b, float invu, float invv, float w, float z) { Fragment &destFragment = screen[adr]; //depth test - int depth; + u32 depth; if(gfx3d.wbuffer) //not sure about this //this value was chosen to make the skybox, castle window decals, and water level render correctly in SM64 @@ -859,7 +858,6 @@ static void SoftRastGetLineCaptured(int line, u16* dst) { Fragment* src = screen+((191-line)<<8); for(int i=0;i<256;i++) { - const bool testRenderAlpha = false; u8 r = src->color.components.r; u8 g = src->color.components.g; u8 b = src->color.components.b; @@ -1146,15 +1144,15 @@ static void SoftRastRender() //here is a hack which needs to be removed. //at some point our shape engine needs these to be converted to "fixed point" //which is currently just a float - for(int i=0;ipolyAttr); - for(int i=0;i