mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
Fixed matrix cache size.
This commit is contained in:
parent
4d30bd201e
commit
15206dc5a5
2 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ int _main_(int /*_argc*/, char** /*_argv*/)
|
|||
bgfx::reset(width, height, reset);
|
||||
|
||||
const bgfx::Caps* caps = bgfx::getCaps();
|
||||
maxDim = (int32_t)powf(caps->maxDrawCalls, 1.0/3.0);
|
||||
maxDim = (int32_t)powf(float(caps->maxDrawCalls), 1.0f/3.0f);
|
||||
|
||||
// Enable debug text.
|
||||
bgfx::setDebug(debug);
|
||||
|
|
|
@ -168,7 +168,7 @@
|
|||
#endif // BGFX_CONFIG_MAX_DRAW_CALLS
|
||||
|
||||
#ifndef BGFX_CONFIG_MAX_MATRIX_CACHE
|
||||
# define BGFX_CONFIG_MAX_MATRIX_CACHE (64<<10)
|
||||
# define BGFX_CONFIG_MAX_MATRIX_CACHE (BGFX_CONFIG_MAX_DRAW_CALLS+1)
|
||||
#endif // BGFX_CONFIG_MAX_MATRIX_CACHE
|
||||
|
||||
#ifndef BGFX_CONFIG_MAX_RECT_CACHE
|
||||
|
|
Loading…
Reference in a new issue