Fixed build.

This commit is contained in:
Branimir Karadžić
2025-10-23 12:42:45 -07:00
parent 89e24f1849
commit a85a76c484
2 changed files with 6 additions and 12 deletions

View File

@@ -19,7 +19,8 @@
# define WIN32_LEAN_AND_MEAN
# endif // WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif // BX_PLATFORM_OSX
# include <psapi.h>
#endif // BX_PLATFORM_*
BX_ERROR_RESULT(BGFX_ERROR_TEXTURE_VALIDATION, BX_MAKEFOURCC('b', 'g', 0, 1) );
BX_ERROR_RESULT(BGFX_ERROR_FRAME_BUFFER_VALIDATION, BX_MAKEFOURCC('b', 'g', 0, 2) );
@@ -2629,10 +2630,10 @@ namespace bgfx
HANDLE process = GetCurrentProcess();
DWORD size;
BOOL result = EnumProcessModules(process
, NULL
, 0
, &size
);
, NULL
, 0
, &size
);
if (0 != result)
{
HMODULE* modules = (HMODULE*)BX_STACK_ALLOC(size);

View File

@@ -6,13 +6,6 @@
#include "bgfx_p.h"
#if BX_PLATFORM_WINDOWS || BX_PLATFORM_LINUX
# if BX_PLATFORM_WINDOWS
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif // WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <psapi.h>
# endif // BX_PLATFORM_WINDOWS
# include <renderdoc/renderdoc_app.h>
namespace bgfx