Skip to content

Commit 8362119

Browse files
demo/sdl3_renderer: reword comment about supplying math functions
Origin: #961 (comment) Fixes: #961 Co-authored-by: TomJGooding <101601846+TomJGooding@users.noreply.github.com>
1 parent 46d1281 commit 8362119

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

demo/sdl3_renderer/nuklear_sdl3_renderer_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ nk_sdl_dtoa(char *str, double d)
7171
}
7272
#define NK_DTOA(str, d) nk_sdl_dtoa(str, d)
7373

74-
/* SDL can also provide us with math functions, but beware that Nuklear's own
75-
* implementation can be slightly faster at the cost of some precision */
74+
/* SDL can supply math functions for Nuklear, but beware you may not always want it.
75+
* Nuklear internally uses imprecise approximations, which can be slightly faster. */
7676
#define NK_INV_SQRT(f) (1.0f / SDL_sqrtf(f))
7777
#define NK_SIN(f) SDL_sinf(f)
7878
#define NK_COS(f) SDL_cosf(f)

0 commit comments

Comments
 (0)