mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-07 22:03:20 +00:00
Removed SDL_RENDERER_ACCELERATED and SDL_RENDERER_SOFTWARE
These flags are unnecessary and have always been a source of confusion.
This commit is contained in:
@@ -1131,6 +1131,7 @@ SDL_Renderer *SW_CreateRendererForSurface(SDL_Surface *surface, SDL_PropertiesID
|
||||
return NULL;
|
||||
}
|
||||
renderer->magic = &SDL_renderer_magic;
|
||||
renderer->software = SDL_TRUE;
|
||||
|
||||
data = (SW_RenderData *)SDL_calloc(1, sizeof(*data));
|
||||
if (!data) {
|
||||
@@ -1217,8 +1218,8 @@ static SDL_Renderer *SW_CreateRenderer(SDL_Window *window, SDL_PropertiesID crea
|
||||
|
||||
SDL_RenderDriver SW_RenderDriver = {
|
||||
SW_CreateRenderer,
|
||||
{ "software",
|
||||
(SDL_RENDERER_SOFTWARE | SDL_RENDERER_PRESENTVSYNC),
|
||||
{ SDL_SOFTWARE_RENDERER,
|
||||
SDL_RENDERER_PRESENTVSYNC,
|
||||
0,
|
||||
{ /* formats filled in later */
|
||||
SDL_PIXELFORMAT_UNKNOWN },
|
||||
|
||||
Reference in New Issue
Block a user