From c4ddb3b0e7edc4a81dd10f0f254f7d4ba0e87b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 23 Mar 2015 17:10:33 -0700 Subject: [PATCH] Fixed view remap. --- src/bgfx_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 11ccfa7b..94ff16b4 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -3091,7 +3091,7 @@ namespace bgfx BGFX_API_FUNC(void setViewRemap(uint8_t _id, uint8_t _num, const void* _remap) ) { - const uint32_t num = bx::uint32_min( (BGFX_CONFIG_MAX_VIEWS - _id) + _num, BGFX_CONFIG_MAX_VIEWS) - _id; + const uint32_t num = bx::uint32_min(_id + _num, BGFX_CONFIG_MAX_VIEWS) - _id; if (NULL == _remap) { for (uint32_t ii = 0; ii < num; ++ii)