(Glide64) fixed remaining ucode variable/ptr initialization warnings
This commit is contained in:
parent
edef61831e
commit
b372464eb0
|
@ -99,6 +99,8 @@ static void uc9_draw_object (wxUint8 * addr, wxUint32 type)
|
||||||
{
|
{
|
||||||
wxUint32 textured, vnum, vsize;
|
wxUint32 textured, vnum, vsize;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
default: /* added to fix uninitialized variable warnings + debugging */
|
||||||
|
FRDP("Unknown geometric primitive type %u.\n", type);
|
||||||
case 0: //null
|
case 0: //null
|
||||||
textured = vnum = vsize = 0;
|
textured = vnum = vsize = 0;
|
||||||
break;
|
break;
|
||||||
|
@ -264,6 +266,10 @@ static void uc9_fmlight ()
|
||||||
case 8:
|
case 8:
|
||||||
m = (M44*)rdp.combined;
|
m = (M44*)rdp.combined;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
m = NULL; /* allowing segfaults to debug in case of PJGlide64 bugs */
|
||||||
|
FRDP("Invalid FM light matrix ID %u.\n", mid);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rdp.light[rdp.num_lights].r = (float)(((wxUint8*)gfx.DMEM)[(a+0)^3]) / 255.0f;
|
rdp.light[rdp.num_lights].r = (float)(((wxUint8*)gfx.DMEM)[(a+0)^3]) / 255.0f;
|
||||||
|
@ -400,6 +406,10 @@ static void uc9_mtxcat ()
|
||||||
s = (M44*)rdp.combined;
|
s = (M44*)rdp.combined;
|
||||||
LRDP("Comb * ");
|
LRDP("Comb * ");
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
FRDP("Invalid mutex S-coordinate: %u\n", S);
|
||||||
|
t = NULL; /* intentional segfault to alert for bugs in PJGlide64 (cxd4) */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
switch (T) {
|
switch (T) {
|
||||||
case 4:
|
case 4:
|
||||||
|
@ -414,6 +424,10 @@ static void uc9_mtxcat ()
|
||||||
LRDP("Comb -> ");
|
LRDP("Comb -> ");
|
||||||
t = (M44*)rdp.combined;
|
t = (M44*)rdp.combined;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
FRDP("Invalid mutex T-coordinate: %u\n", T);
|
||||||
|
t = NULL; /* intentional segfault to alert for bugs in PJGlide64 (cxd4) */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
DECLAREALIGN16VAR(m[4][4]);
|
DECLAREALIGN16VAR(m[4][4]);
|
||||||
MulMatrices(*s, *t, m);
|
MulMatrices(*s, *t, m);
|
||||||
|
|
Loading…
Reference in New Issue