libobs: Update render_item to enable linear SRGB
Does nothing without linear-aware modifications to sources.
This commit is contained in:
parent
edbad7e93d
commit
72efe8b942
@ -570,6 +570,7 @@ static inline void render_item(struct obs_scene_item *item)
|
||||
}
|
||||
}
|
||||
|
||||
const bool previous = gs_set_linear_srgb(true);
|
||||
gs_matrix_push();
|
||||
gs_matrix_mul(&item->draw_transform);
|
||||
if (item->item_render) {
|
||||
@ -578,6 +579,7 @@ static inline void render_item(struct obs_scene_item *item)
|
||||
obs_source_video_render(item->source);
|
||||
}
|
||||
gs_matrix_pop();
|
||||
gs_set_linear_srgb(previous);
|
||||
|
||||
cleanup:
|
||||
GS_DEBUG_MARKER_END();
|
||||
|
Loading…
x
Reference in New Issue
Block a user