|
b8d85c69
|
2022-11-30T12:51:59
|
|
Update for SDL3 coding style (#6717)
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.
In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.
The script I ran for the src directory is added as build-scripts/clang-format-src.sh
This fixes:
#6592
#6593
#6594
(cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
|
|
fb0ce375
|
2022-11-27T17:38:43
|
|
Cleanup add brace (#6545)
* Add braces after if conditions
* More add braces after if conditions
* Add braces after while() conditions
* Fix compilation because of macro being modified
* Add braces to for loop
* Add braces after if/goto
* Move comments up
* Remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements
* More remove extra () in the 'return ...;' statements after merge
* Fix inconsistent patterns are xxx == NULL vs !xxx
* More "{}" for "if() break;" and "if() continue;"
* More "{}" after if() short statement
* More "{}" after "if () return;" statement
* More fix inconsistent patterns are xxx == NULL vs !xxx
* Revert some modificaion on SDL_RLEaccel.c
* SDL_RLEaccel: no short statement
* Cleanup 'if' where the bracket is in a new line
* Cleanup 'while' where the bracket is in a new line
* Cleanup 'for' where the bracket is in a new line
* Cleanup 'else' where the bracket is in a new line
(cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
|
|
ce5da5d5
|
2022-11-16T21:47:43
|
|
Don't compare pointer against '0', but NULL
|
|
69bbe4ce
|
2022-09-29T15:50:50
|
|
Fix memory leak in VITA_GXM_CreateRenderer
|
|
d744aafb
|
2022-09-15T01:00:12
|
|
Added support for simulated vsync in the renderer
This kicks in if the platform doesn't support vsync directly, or if the present fails for some reason (e.g. minimized on some platforms)
Fixes https://github.com/libsdl-org/SDL/issues/5134
|
|
b2f07d94
|
2022-06-26T15:53:13
|
|
Vita: create rendertarget color surface with same format as texture. Fixes #5844
|
|
adc68758
|
2022-06-17T10:22:28
|
|
Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!)
Closes https://github.com/libsdl-org/SDL/pull/5811
|
|
d9009388
|
2022-04-19T14:55:58
|
|
SceKernelMemBlockType to unsigned int
|
|
3753a7b1
|
2022-04-19T14:42:39
|
|
Fix recent changes in VitaSDK
|
|
95ed8313
|
2022-03-25T15:22:10
|
|
Vita: Use preallocated memory pool for textures
|
|
69d0b6e3
|
2022-03-25T15:18:39
|
|
Vita: Fix NULL-pointer dereference
|
|
eadc064e
|
2022-03-23T19:14:28
|
|
Vita: add native YUV textures support.
* Fail if texture init fails.
* Refactor and cleanup.
|
|
ce1883e1
|
2022-02-05T12:12:21
|
|
fix compile error with disabled SDL_HAVE_YUV (vita)
- UpdateTextureYUV is not defined if SDL_HAVE_YUV is not defined/zero
+ calling SDL_free suffice if the VITA_GXM_RenderData was just allocated
|
|
c275436f
|
2022-01-09T00:39:02
|
|
opengles2: Batching lines/points used wrong var for summing vertex counts.
Fixed this in the vitagxm backend too, but I don't know what the state of
that code is otherwise.
Reference Issue #5061.
|
|
120c76c8
|
2022-01-03T09:40:00
|
|
Updated copyright for 2022
|
|
3a5e148b
|
2021-12-14T11:02:07
|
|
Renderer backends use SDL_Color instead of int for geometry colors.
|
|
8dd6edec
|
2021-11-23T09:30:42
|
|
Fixed bug #3232 - Integer overflow generates Illegal instruction under sanitizers + see bug #4995
|
|
aef71054
|
2021-11-22T16:58:04
|
|
Use SDL_free
|
|
d31251b0
|
2021-11-21T22:30:48
|
|
use SDL's functions version inplace of libc version
|
|
848d7b12
|
2021-11-02T16:12:55
|
|
Vita: Implement command batching
|
|
3f7a94fc
|
2021-11-02T15:16:48
|
|
Vita: Remove FillRects
|
|
fba82ad1
|
2021-10-31T12:38:08
|
|
Remove sceGxmFinish from RenderPresent on Vita. Make sure that rendering is finished on render texture during locking
|
|
79732c9d
|
2021-09-25T11:35:20
|
|
Remove FillRects from back-end, where RenderGeometry can be used
|
|
0e5160a0
|
2021-09-20T17:01:33
|
|
VITA: remove RenderCopy and RenderCopyEx from back-end
|
|
14f22519
|
2021-09-26T18:11:22
|
|
Use SDL_calloc for allocation of gxm_texture
|
|
52921563
|
2021-09-22T21:23:42
|
|
End Scene on RunCommandQueue on Vita
|
|
3b2fbb1c
|
2021-09-20T23:44:22
|
|
End current scene before destroying the texture on Vita
|
|
fc4296c1
|
2021-09-20T23:02:43
|
|
Use aligned stride in sceGxmColorSurfaceInit
|
|
7080bc2a
|
2021-09-20T23:02:01
|
|
Fallback to SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE if CDRAM texture allocation fails
|
|
5faea84c
|
2021-09-18T11:54:25
|
|
render: Mark viewport/cliprect dirty when window is resized.
Fixes #4751.
|
|
79ec8986
|
2021-09-16T12:47:45
|
|
Vita: refactor gxm texture render and add SDL_RenderGeometry support
|
|
4549769d
|
2021-03-07T15:20:45
|
|
Add `SDL_RenderSetVSync()`
Currently, if an application wants to toggle VSync, they'd have to tear
down the renderer and recreate it. This patch fixes that by letting
applications call SDL_RenderSetVSync().
This is the same as the patch in #3673, except it applies to all
renderers (including PSP, even thought it seems that the VSync flag is
disabled for that renderer). Furthermore, the renderer flags also change
as well, which #3673 didn't do. It is also an API instead of using hint
callbacks (which could be potentially dangerous).
Closes #3673.
|
|
10d3df44
|
2021-09-09T12:46:28
|
|
Vita: fix copyright dates
|
|
f806064e
|
2021-07-19T13:12:10
|
|
Remove 'support' for rgb/bgr textures, that was causing issues with them
|
|
817976da
|
2021-07-13T13:45:28
|
|
VITA: Rewrite and fix RenderCopyEx rotation
|
|
3b6e9992
|
2021-06-23T14:57:04
|
|
Vita: remove unused variable and allow Razor perf analysis
|
|
b55ee12f
|
2021-06-21T23:56:04
|
|
Vita: fix clip rectangle
|
|
e41d3e61
|
2021-06-21T23:15:37
|
|
VIta: fix render clearing
|
|
6b122805
|
2021-06-21T23:14:56
|
|
Vita: proper syntax
|
|
32deb6f7
|
2021-06-21T23:14:40
|
|
Vita: fix point size
|
|
8da0dd17
|
2021-06-15T18:54:52
|
|
Oops. Renderer already queues viewport change
|
|
1fc51988
|
2021-06-15T18:49:55
|
|
Reset/re-apply viewport on frame start/target change. Fixes SDL_RenderSetLogicalSize on PSVita
|
|
a4442476
|
2021-06-10T12:14:14
|
|
Cleanup dead and duplicate code
|
|
63e223fa
|
2020-11-23T12:45:09
|
|
Set initial blend mode
|
|
6ba84975
|
2020-11-21T23:04:27
|
|
Remove vita2d render, add raw gxm render
|
|
e58a955e
|
2021-03-08T18:39:00
|
|
Deprecate dolcesdk
|
|
c8abc88c
|
2021-01-29T01:26:35
|
|
Add support for message box
|
|
91fe2b67
|
2021-02-19T18:52:19
|
|
Allow larger texture sizes
|
|
739f4e1e
|
2021-02-01T23:14:28
|
|
Only call sceGxmFinish when vsync is on
Also fix oversight with supported textures
|
|
ddfe7200
|
2021-01-18T15:00:50
|
|
Rendering improvements
- Improve performance for unbatched rendering
- Support direct texture access
|
|
c7cec2c7
|
2021-01-11T20:45:12
|
|
Add more texture formats
|
|
7d89f09f
|
2020-12-18T14:28:09
|
|
ISO C90 fixes
|
|
0da35d3d
|
2020-12-12T23:47:15
|
|
IME support with gxm backend
|
|
639323ea
|
2020-12-09T14:38:43
|
|
Fixed gxm render flags
|
|
05e5a7cb
|
2020-11-29T22:07:53
|
|
Oops
|
|
a86ba391
|
2020-11-28T00:32:32
|
|
Add SDL_RenderReadPixels
|
|
f623211e
|
2020-11-25T00:29:04
|
|
remove sceGxmFinish on render swap
|
|
0b45529e
|
2020-11-25T00:19:18
|
|
Add viewport support
|
|
2209b717
|
2020-11-24T18:12:38
|
|
Refactor render state
|
|
333d5e11
|
2020-11-23T20:15:39
|
|
Add drawstate cache
|
|
56bde0f6
|
2020-11-23T18:31:23
|
|
Rename memory functions to avoid clash with vita2d
|
|
94d7737b
|
2020-11-23T12:45:51
|
|
Texture render target
|