Skip to content

Commit

Permalink
AGS capture error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrsn authored and davidd-lunarg committed Mar 12, 2024
1 parent 8d2e505 commit d7127d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/encode/custom_ags_wrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ AMD_AGS_API AGSReturnCode agsInitialize(int agsVersion,
manager->SetAgsVersion(agsVersion);
if (((agsVersion >> 22) & 0x3FF) < AMD_AGS_VERSION_MAJOR)
{
MessageBox(NULL, "Warning: The AGS version is not supported.", "AGS Version Warning", MB_ICONWARNING | MB_OK);
GFXRECON_LOG_ERROR("The AGS version is not supported.");
}
auto call_scope = manager->IncrementCallScope();

Expand Down
2 changes: 1 addition & 1 deletion framework/encode/d3d12_capture_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ class D3D12CaptureManager : public CaptureManager
DxgiDispatchTable dxgi_dispatch_table_; ///< DXGI dispatch table for functions retrieved from the DXGI DLL.
D3D12DispatchTable d3d12_dispatch_table_; ///< D3D12 dispatch table for functions retrieved from the D3D12 DLL.
AgsDispatchTable ags_dispatch_table_; ///< ags dispatch table for functions retrieved from the AGS DLL.
int ags_version_; ///< ags version.
int ags_version_{}; ///< ags version.
static thread_local uint32_t call_scope_; ///< Per-thread scope count to determine when an intercepted API call is
///< being made directly by the application.
bool debug_layer_enabled_; ///< Track if debug layer has been enabled.
Expand Down

0 comments on commit d7127d4

Please sign in to comment.