mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-23 13:09:11 +00:00
Make sure initial state is set correctly for the D3D renderer
Fixes https://github.com/libsdl-org/SDL/issues/5749
This commit is contained in:
parent
345efdcb10
commit
ae2cc29f8b
1 changed files with 3 additions and 0 deletions
|
@ -1747,6 +1747,9 @@ D3D_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
data->drawstate.viewport_dirty = SDL_TRUE;
|
||||||
|
data->drawstate.cliprect_dirty = SDL_TRUE;
|
||||||
|
data->drawstate.cliprect_enabled_dirty = SDL_TRUE;
|
||||||
data->drawstate.blend = SDL_BLENDMODE_INVALID;
|
data->drawstate.blend = SDL_BLENDMODE_INVALID;
|
||||||
|
|
||||||
return renderer;
|
return renderer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue