(Glide64) now debugging possibly uninitialized combiner mode

This commit is contained in:
unknown 2015-02-01 11:22:02 -05:00
parent a6effdee02
commit b6d7e6fdae
1 changed files with 6 additions and 3 deletions

View File

@ -15607,12 +15607,15 @@ void Combine ()
left = cc_lookup[actual_combine>>24]; left = cc_lookup[actual_combine>>24];
right = cc_lookup[(actual_combine>>24)+1]; right = cc_lookup[(actual_combine>>24)+1];
while (1) do {
{
last = current; last = current;
current = left + ((right-left) >> 1); current = left + ((right-left) >> 1);
if (current == last) if (current == last)
{
FRDP("Warning! Could not initialize current_combiner to valid index.\n");
current_combine = ~0u; /* Debug uncertain case, and fix warning (cxd4). */
break; // can't be found! break; // can't be found!
}
current_combine = color_cmb_list[current].key; current_combine = color_cmb_list[current].key;
if (current_combine < actual_combine) if (current_combine < actual_combine)
@ -15621,7 +15624,7 @@ void Combine ()
right = current; right = current;
else else
break; // found it! break; // found it!
} } while (1);
// Check if we didn't find it // Check if we didn't find it
if (actual_combine != current_combine) if (actual_combine != current_combine)