升级
This commit is contained in:
@@ -60,7 +60,8 @@ void Renderable::build_task_graph(Renderable_Task_Graph& graph) {
|
||||
|
||||
void Renderable::build_paint_task_graph(Renderable_Task_Graph& graph) {
|
||||
add_paint_task(graph, "paint", [this](detail::Painter& painter,
|
||||
const Render_State_View& state) {
|
||||
const Render_State_View& state,
|
||||
const Scene_Render_Context&) {
|
||||
paint(painter, state);
|
||||
});
|
||||
}
|
||||
@@ -78,7 +79,7 @@ Renderable_Task_Graph::Task Renderable::add_paint_task(
|
||||
return;
|
||||
detail::Painter painter(*cache, viewport_size());
|
||||
if (painter)
|
||||
function(painter, render_state_view());
|
||||
function(painter, render_state_view(), context);
|
||||
},
|
||||
std::move(name));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user