index_to_framebuffer (used for mesh selection) was being called 3x times per call to WM_set_framebuffer_index_color(), because of the cpack define.

This commit is contained in:
2011-08-13 09:22:14 +00:00
parent a7dd264940
commit 7c7fac2174

View File

@@ -378,7 +378,8 @@ unsigned int index_to_framebuffer(int index)
void WM_set_framebuffer_index_color(int index)
{
cpack(index_to_framebuffer(index));
const int col= index_to_framebuffer(index);
cpack(col);
}
int WM_framebuffer_to_index(unsigned int col)