From b0df9157379ff187098cad3818c245083387d3ff Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Wed, 25 Dec 2013 12:58:37 -0500 Subject: [PATCH] WinRT: removed an unnecessary use of std::string in the d3d11 renderer --- src/render/direct3d11/SDL_render_d3d11.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/render/direct3d11/SDL_render_d3d11.cpp b/src/render/direct3d11/SDL_render_d3d11.cpp index 9041a9dcd..a97c407cf 100644 --- a/src/render/direct3d11/SDL_render_d3d11.cpp +++ b/src/render/direct3d11/SDL_render_d3d11.cpp @@ -1224,8 +1224,7 @@ D3D11_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture) D3D11_TextureData *textureData = (D3D11_TextureData *) texture->driverdata; if (!textureData->mainTextureRenderTargetView) { - std::string errorMessage = string(__FUNCTION__) + ": specified texture is not a render target"; - return SDL_SetError(errorMessage.c_str()); + return SDL_SetError(__FUNCTION__ ", specified texture is not a render target"); } rendererData->currentOffscreenRenderTargetView = textureData->mainTextureRenderTargetView;