Allow the application to explicitly request a software renderer.
This commit is contained in:
parent
baf813b8c1
commit
3746025d7f
2 changed files with 4 additions and 3 deletions
|
@ -63,9 +63,10 @@ extern "C" {
|
|||
*/
|
||||
typedef enum
|
||||
{
|
||||
SDL_RENDERER_ACCELERATED = 0x00000001, /**< The renderer uses hardware
|
||||
SDL_RENDERER_SOFTWARE = 0x00000001, /**< The renderer is a software fallback */
|
||||
SDL_RENDERER_ACCELERATED = 0x00000002, /**< The renderer uses hardware
|
||||
acceleration */
|
||||
SDL_RENDERER_PRESENTVSYNC = 0x00000002 /**< Present is synchronized
|
||||
SDL_RENDERER_PRESENTVSYNC = 0x00000004 /**< Present is synchronized
|
||||
with the refresh rate */
|
||||
} SDL_RendererFlags;
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ SDL_RenderDriver SW_RenderDriver = {
|
|||
SW_CreateRenderer,
|
||||
{
|
||||
"software",
|
||||
0,
|
||||
SDL_RENDERER_SOFTWARE,
|
||||
8,
|
||||
{
|
||||
SDL_PIXELFORMAT_RGB555,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue