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)