WinRT: removed an unnecessary use of std::string in the d3d11 renderer

This commit is contained in:
David Ludwig 2013-12-25 12:58:37 -05:00
parent 10f2de1e69
commit b0df915737
1 changed files with 1 additions and 2 deletions

View File

@ -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;