Skip to content

Commit 92909b9

Browse files
author
Igor Brusentsev
committed
Log error if ASG iversion is not supported
1 parent 2cab654 commit 92909b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework/encode/custom_ags_wrappers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ AMD_AGS_API AGSReturnCode agsInitialize(int agsVersion,
3939
manager->SetAgsVersion(agsVersion);
4040
if (((agsVersion >> 22) & 0x3FF) < AMD_AGS_VERSION_MAJOR)
4141
{
42-
MessageBox(NULL, "Warning: The AGS version is not supported.", "AGS Version Warning", MB_ICONWARNING | MB_OK);
42+
GFXRECON_LOG_WARNING("The AGS version is not supported.");
4343
}
4444
auto call_scope = manager->IncrementCallScope();
4545

framework/encode/d3d12_capture_manager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ class D3D12CaptureManager : public CaptureManager
795795
DxgiDispatchTable dxgi_dispatch_table_; ///< DXGI dispatch table for functions retrieved from the DXGI DLL.
796796
D3D12DispatchTable d3d12_dispatch_table_; ///< D3D12 dispatch table for functions retrieved from the D3D12 DLL.
797797
AgsDispatchTable ags_dispatch_table_; ///< ags dispatch table for functions retrieved from the AGS DLL.
798-
int ags_version_; ///< ags version.
798+
int ags_version_{ 0 }; ///< ags version.
799799
static thread_local uint32_t call_scope_; ///< Per-thread scope count to determine when an intercepted API call is
800800
///< being made directly by the application.
801801
bool debug_layer_enabled_; ///< Track if debug layer has been enabled.

0 commit comments

Comments
 (0)