grimfang4 / SDL_FontCache

A generic font caching C library with loading and rendering support for SDL.
MIT License
305 stars 66 forks source link

Test Program Does Not Work With Visual Studio 2022 #56

Open jaredhagel opened 1 year ago

jaredhagel commented 1 year ago

I get numerous errors when trying to run test\main.c within Visual Studio 2022. These are some of the errors:

First call to 'SDL_SetRenderTarget' within 'FC_UploadGlyphCache' results in numerous assertions within the FlushRenderCommands function in the SDL2 file render\SDL_render.c.

Assertion that fails is this: SDL_assert((renderer->render_commands == NULL) == (renderer->render_commands_tail == NULL));

If you ignore the assertions above, then a 'read access violation' also occurs in the same call to 'SDL_SetRenderTarget' when this function eventually calls SDL_LockMutex_srw within the SDL2 file src\thread\windows\SDL_sysmutex.c