WinRT: removed an unnecessary use of std::string in the d3d11 renderer
authorDavid Ludwig <dludwig@pobox.com>
Wed, 25 Dec 2013 12:58:37 -0500
changeset 8557 4e82337fea14
parent 8556 9acb33672124
child 8558 f3a1718a65c6
WinRT: removed an unnecessary use of std::string in the d3d11 renderer
src/render/direct3d11/SDL_render_d3d11.cpp
--- a/src/render/direct3d11/SDL_render_d3d11.cpp	Wed Dec 25 12:52:16 2013 -0500
+++ b/src/render/direct3d11/SDL_render_d3d11.cpp	Wed Dec 25 12:58:37 2013 -0500
@@ -1224,8 +1224,7 @@
     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;