Navigation Menu

Skip to content

Commit

Permalink
WinRT: removed an unnecessary use of std::string in the d3d11 renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Dec 25, 2013
1 parent 10f2de1 commit b0df915
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/render/direct3d11/SDL_render_d3d11.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b0df915

Please sign in to comment.