allocate memory for surfaces on CreateDIBSection failure

This commit is contained in:
FunkyFr3sh 2018-07-01 21:27:44 +02:00
parent 0b12de90e2
commit 897fdb5bbb
2 changed files with 11 additions and 4 deletions

View file

@ -426,7 +426,7 @@ DWORD WINAPI render_main(void)
{
snprintf(
debugText, sizeof(debugText),
"FPS: %lu | Time: %2.2f ms",
"FPS: %lu | Time: %2.2f ms ",
frame_count, frameTime);
frame_count = 0;