grimfang4/SDL_FontCache

Test Program Does Not Work With Visual Studio 2022

jaredhagel opened this issue · 0 comments

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