mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 17:35:34 +00:00
direct3d: Remove unnecessary render target support check.
Direct3D 9 dictates that caps.NumSimultaneousRTs must always be at least 1, which is to say that Direct3D 9 level hardware must always support render targets. (caps.NumSimultaneousRTs is meant to show if you can draw to multiple render targets in a single draw call.) We had already hardcoded SDL_RENDERER_TARGETTEXTURE as available earlier in the function anyhow. Fixes #4781.
This commit is contained in:
parent
0fc43504a0
commit
114d1d46ac
|
@ -1908,9 +1908,6 @@ D3D_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||||
IDirect3DDevice9_GetDeviceCaps(data->device, &caps);
|
IDirect3DDevice9_GetDeviceCaps(data->device, &caps);
|
||||||
renderer->info.max_texture_width = caps.MaxTextureWidth;
|
renderer->info.max_texture_width = caps.MaxTextureWidth;
|
||||||
renderer->info.max_texture_height = caps.MaxTextureHeight;
|
renderer->info.max_texture_height = caps.MaxTextureHeight;
|
||||||
if (caps.NumSimultaneousRTs >= 2) {
|
|
||||||
renderer->info.flags |= SDL_RENDERER_TARGETTEXTURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (caps.PrimitiveMiscCaps & D3DPMISCCAPS_SEPARATEALPHABLEND) {
|
if (caps.PrimitiveMiscCaps & D3DPMISCCAPS_SEPARATEALPHABLEND) {
|
||||||
data->enableSeparateAlphaBlend = SDL_TRUE;
|
data->enableSeparateAlphaBlend = SDL_TRUE;
|
||||||
|
|
Loading…
Reference in a new issue