From 2d313f46ad5be99ae63ea2c4885d32df60600e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Sun, 21 Aug 2022 16:26:45 -0700 Subject: [PATCH] Cleanup. --- src/bgfx.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index b9c451144..fbb3084ab 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -2666,11 +2666,6 @@ namespace bgfx #endif // BX_PLATFORM_WINDOWS } - static int32_t compareDescending(const void* _lhs, const void* _rhs) - { - return *(const int32_t*)_rhs - *(const int32_t*)_lhs; - } - RendererContextI* rendererCreate(const Init& _init) { int32_t scores[RendererType::Count]; @@ -2748,7 +2743,7 @@ namespace bgfx } } - bx::quickSort(scores, numScores, sizeof(int32_t), compareDescending); + bx::quickSort(scores, numScores, bx::compareDescending); RendererContextI* renderCtx = NULL; for (uint32_t ii = 0; ii < numScores; ++ii)