Cycles: code refactoring, to do render layer visibility test a bit different,
[blender.git] / intern / cycles / app / cycles_test.cpp
index 838167274048a0689678d74d26608274080a7018..d162dbf12a9d794e5c93f4081b36aa1654fa6ebf 100644 (file)
@@ -82,9 +82,9 @@ static void session_print_status()
        session_print(status);
 }
 
-static BufferParams session_buffer_params()
+static BufferParams& session_buffer_params()
 {
-       BufferParams buffer_params;
+       static BufferParams buffer_params;
        buffer_params.width = options.width;
        buffer_params.height = options.height;
        buffer_params.full_width = options.width;