mirror of https://github.com/encounter/SDL.git
Windows: Fixed format string for error message.
This commit is contained in:
parent
56c82bc828
commit
26b4898ac2
|
@ -2916,7 +2916,7 @@ D3D11_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
|
||||||
*/
|
*/
|
||||||
char errorMessage[1024];
|
char errorMessage[1024];
|
||||||
SDL_snprintf(errorMessage, sizeof(errorMessage), __FUNCTION__ ", Convert Pixels failed: %s", SDL_GetError());
|
SDL_snprintf(errorMessage, sizeof(errorMessage), __FUNCTION__ ", Convert Pixels failed: %s", SDL_GetError());
|
||||||
SDL_SetError(errorMessage);
|
SDL_SetError("%s", errorMessage);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue