libobs: UI: Use graphics debug markers
Add D3D/GL debug markers to make RenderDoc captures easier to tranverse. Also add obs_source_get_name_no_null() to avoid boilerplate for safe string formatting. Closes obsproject/obs-studio#1799
This commit is contained in:
parent
2996a6c06b
commit
21f4dd63d4
7 changed files with 83 additions and 5 deletions
|
|
@ -1305,6 +1305,8 @@ void OBSBasic::SetPreviewProgramMode(bool enabled)
|
|||
|
||||
void OBSBasic::RenderProgram(void *data, uint32_t cx, uint32_t cy)
|
||||
{
|
||||
GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_DEFAULT, "RenderProgram");
|
||||
|
||||
OBSBasic *window = static_cast<OBSBasic*>(data);
|
||||
obs_video_info ovi;
|
||||
|
||||
|
|
@ -1333,6 +1335,8 @@ void OBSBasic::RenderProgram(void *data, uint32_t cx, uint32_t cy)
|
|||
gs_projection_pop();
|
||||
gs_viewport_pop();
|
||||
|
||||
GS_DEBUG_MARKER_END();
|
||||
|
||||
UNUSED_PARAMETER(cx);
|
||||
UNUSED_PARAMETER(cy);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue