mirror of https://github.com/encounter/SDL.git
WinRT: removed an unnecessary use of std::string in the d3d11 renderer
This commit is contained in:
parent
10f2de1e69
commit
b0df915737
|
@ -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…
Reference in New Issue