This code is a little confusing with the result of the assignment passed into the function.  It may be best to split it into two lines, one with the assignment, and the second calling SetRenderGUI().