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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user