mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
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;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user