Added some missing render capability flags

This commit is contained in:
Sam Lantinga 2017-08-29 23:14:39 -07:00
parent c3d428d402
commit 9ca6292372

View File

@ -478,12 +478,18 @@ static void
SDLTest_PrintRendererFlag(char *text, size_t maxlen, Uint32 flag) SDLTest_PrintRendererFlag(char *text, size_t maxlen, Uint32 flag)
{ {
switch (flag) { switch (flag) {
case SDL_RENDERER_PRESENTVSYNC: case SDL_RENDERER_SOFTWARE:
SDL_snprintfcat(text, maxlen, "PresentVSync"); SDL_snprintfcat(text, maxlen, "Software");
break; break;
case SDL_RENDERER_ACCELERATED: case SDL_RENDERER_ACCELERATED:
SDL_snprintfcat(text, maxlen, "Accelerated"); SDL_snprintfcat(text, maxlen, "Accelerated");
break; break;
case SDL_RENDERER_PRESENTVSYNC:
SDL_snprintfcat(text, maxlen, "PresentVSync");
break;
case SDL_RENDERER_TARGETTEXTURE:
SDL_snprintfcat(text, maxlen, "TargetTexturesSupported");
break;
default: default:
SDL_snprintfcat(text, maxlen, "0x%8.8x", flag); SDL_snprintfcat(text, maxlen, "0x%8.8x", flag);
break; break;