Skip to content

Commit

Permalink
Update SDL to 2.28.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnr committed Sep 4, 2023
1 parent 28959d3 commit 54e3fff
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dependencies/SDL/include/SDL_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ assert can have unique static variables associated with it.
#define SDL_TriggerBreakpoint() __builtin_debugtrap()
#elif ( (!defined(__NACL__)) && ((defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))) )
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
#elif (defined(__GNUC__) || defined(__clang__)) && defined(__riscv)
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "ebreak\n\t" )
#elif ( defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__)) ) /* this might work on other ARM targets, but this is a known quantity... */
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "brk #22\n\t" )
#elif defined(__APPLE__) && defined(__arm__)
Expand Down
11 changes: 11 additions & 0 deletions dependencies/SDL/include/SDL_hints.h
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,17 @@ extern "C" {
*/
#define SDL_HINT_RENDER_VSYNC "SDL_RENDER_VSYNC"

/**
* \brief A variable controlling whether the Metal render driver select low power device over default one
*
* This variable can be set to the following values:
* "0" - Use the prefered OS device
* "1" - Select a low power one
*
* By default the prefered OS device is used.
*/
#define SDL_HINT_RENDER_METAL_PREFER_LOW_POWER_DEVICE "SDL_RENDER_METAL_PREFER_LOW_POWER_DEVICE"

/**
* \brief A variable controlling if VSYNC is automatically disable if doesn't reach the enough FPS
*
Expand Down
2 changes: 1 addition & 1 deletion dependencies/SDL/include/SDL_render.h
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ extern DECLSPEC void *SDLCALL SDL_RenderGetMetalLayer(SDL_Renderer * renderer);
* Note that as of SDL 2.0.18, this will return NULL if Metal refuses to give
* SDL a drawable to render to, which might happen if the window is
* hidden/minimized/offscreen. This doesn't apply to command encoders for
* render targets, just the window's backbacker. Check your return values!
* render targets, just the window's backbuffer. Check your return values!
*
* \param renderer The renderer to query
* \returns an `id<MTLRenderCommandEncoder>` on success, or NULL if the
Expand Down
4 changes: 2 additions & 2 deletions dependencies/SDL/include/SDL_revision.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* Generated by updaterev.sh, do not edit */
#ifdef SDL_VENDOR_INFO
#define SDL_REVISION "SDL-release-2.28.2-0-g031912c4b (" SDL_VENDOR_INFO ")"
#define SDL_REVISION "SDL-release-2.28.3-0-g8a5ba43d0 (" SDL_VENDOR_INFO ")"
#else
#define SDL_REVISION "SDL-release-2.28.2-0-g031912c4b"
#define SDL_REVISION "SDL-release-2.28.3-0-g8a5ba43d0"
#endif
#define SDL_REVISION_NUMBER 0
2 changes: 1 addition & 1 deletion dependencies/SDL/include/SDL_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ typedef struct SDL_version
*/
#define SDL_MAJOR_VERSION 2
#define SDL_MINOR_VERSION 28
#define SDL_PATCHLEVEL 2
#define SDL_PATCHLEVEL 3

/**
* Macro to determine SDL version program was compiled against.
Expand Down
Binary file modified dependencies/SDL/lib/x64/libSDL2.dll.a
Binary file not shown.
Binary file modified dependencies/SDL/lib/x86/libSDL2.dll.a
Binary file not shown.
Binary file modified lib/SDL2.dll
Binary file not shown.
Binary file modified lib64/SDL2.dll
Binary file not shown.

0 comments on commit 54e3fff

Please sign in to comment.