mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fix C99 example for MSVC toolchains
The existing code is valid C99, however there only C99 specific feature used that is incompatible with the MSVC C compiler is the relaxed variable declaration rules.
This commit is contained in:
parent
bf393f69f7
commit
79e4695b70
1 changed files with 2 additions and 2 deletions
|
@ -15,12 +15,12 @@ uint16_t uint16_max(uint16_t _a, uint16_t _b)
|
|||
|
||||
int _main_(int _argc, char** _argv)
|
||||
{
|
||||
(void)_argc;
|
||||
(void)_argv;
|
||||
uint32_t width = 1280;
|
||||
uint32_t height = 720;
|
||||
uint32_t debug = BGFX_DEBUG_TEXT;
|
||||
uint32_t reset = BGFX_RESET_VSYNC;
|
||||
(void)_argc;
|
||||
(void)_argv;
|
||||
|
||||
bgfx_init(BGFX_RENDERER_TYPE_COUNT, NULL, NULL);
|
||||
bgfx_reset(width, height, reset);
|
||||
|
|
Loading…
Reference in a new issue