WinRT: removed an unnecessary use of std::string in the d3d11 renderer
This commit is contained in:
parent
1b770842fc
commit
788d61ec6b
1 changed files with 1 additions and 2 deletions
|
@ -1224,8 +1224,7 @@ D3D11_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||||
D3D11_TextureData *textureData = (D3D11_TextureData *) texture->driverdata;
|
D3D11_TextureData *textureData = (D3D11_TextureData *) texture->driverdata;
|
||||||
|
|
||||||
if (!textureData->mainTextureRenderTargetView) {
|
if (!textureData->mainTextureRenderTargetView) {
|
||||||
std::string errorMessage = string(__FUNCTION__) + ": specified texture is not a render target";
|
return SDL_SetError(__FUNCTION__ ", specified texture is not a render target");
|
||||||
return SDL_SetError(errorMessage.c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rendererData->currentOffscreenRenderTargetView = textureData->mainTextureRenderTargetView;
|
rendererData->currentOffscreenRenderTargetView = textureData->mainTextureRenderTargetView;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue