|
183eb067
|
2021-09-01T15:46:32
|
|
Fixed bug #4711: prevent opengl SDL_renderer from crashing if GL_ARB_multitexture isn't supported
|
|
be6bee0b
|
2021-08-27T07:47:28
|
|
SW_RenderGeometry: add a redundant check to clear static analysis (see bug #4600)
|
|
54ca1d19
|
2021-08-27T07:44:03
|
|
SW_RenderGeometry: add a redundant check to clear static analysis (see bug #4600)
|
|
b17aa5d0
|
2021-08-27T07:16:40
|
|
SW_RenderGeometry: remove a few static analysis false positives (see bug #4600)
|
|
e426bb80
|
2021-08-20T07:50:30
|
|
Fixed bug #4671 - D3D_QueueGeometry: use "count / 3" (Thanks alittlesail!)
|
|
ae5336a3
|
2021-08-19T14:03:10
|
|
Fixed bug #4669: D3D_QueueGeometry: -0.5f offset position of vertexs
This similar to D3D_QueueCopy positions
|
|
8270172e
|
2021-08-19T12:11:10
|
|
fix -Wshorten-64-to-32 warnings in android builds.
see: https://github.com/libsdl-org/SDL/pull/4195#issuecomment-901506386
|
|
cc37c38e
|
2021-04-01T09:55:00
|
|
Add SDL_RenderGeometry based on SDL_RenderGeometryRaw
|
|
e4812611
|
2021-04-01T09:49:16
|
|
Move to SDL_RenderGeometryRaw prototype with separate xy/uv/color pointer parameters
|
|
111c70e1
|
2021-03-26T09:09:08
|
|
Use 64 bits precision to prevent overflow when interpolating color / texture with wide triangles
|
|
f73c1eff
|
2021-03-17T09:58:49
|
|
Use normalized texture coordinates
|
|
5828cc41
|
2021-03-16T21:54:27
|
|
Update METAL backend: fix a typo in drawline
|
|
9a8a8e65
|
2021-03-16T16:04:33
|
|
Update SDL_render_d3d11.c
Fix D3D11 compilation
|
|
121114d0
|
2021-03-16T15:44:49
|
|
Update METAL compiled shaders
|
|
2d01573b
|
2021-03-16T15:44:33
|
|
Add METAL shaders
|
|
1e77dae7
|
2021-03-16T15:44:04
|
|
Add METAL implementation
|
|
1ebef073
|
2021-03-16T15:15:43
|
|
Add D3D11 implementation (not yet tested)
|
|
3ee511d7
|
2021-03-16T15:14:58
|
|
Add software renderer implementation
|
|
37f78fc1
|
2021-03-16T15:13:15
|
|
Add OpenGL implementation
|
|
faded41a
|
2021-03-16T15:11:13
|
|
Add OpenGLES2 implementation
|
|
6e26d320
|
2021-03-16T15:09:34
|
|
Add sysrender interface
|
|
53a2608b
|
2021-03-14T22:32:17
|
|
Renderer opengles2: turn color Uniform into Attribute.
all attributes are copied interleaved (based on rmg-nik initial patch+
+ minor clean up of data structure
+ add check for colorswap
|
|
154384a7
|
2021-08-18T23:59:27
|
|
Add (uintptr_t) casts
|
|
1670104a
|
2021-04-23T12:27:35
|
|
Change 'size_indice' to 'size_indices'
|
|
a8f89a01
|
2021-04-23T12:00:14
|
|
Change 'size_indice' to 'size_indices'
|
|
47db47c1
|
2021-04-06T21:32:02
|
|
Add SDL_HAVE_RENDER_GEOMETRY to compile or not with RenderGeometry support
|
|
b9bd9da7
|
2021-04-04T22:34:17
|
|
OpenGLES2: transfert color as 4 bytes, instead of 4 floats
|
|
c6ceaaeb
|
2021-04-04T21:32:40
|
|
METAL: use Uchar4Normalized format to transfert color as 4 bytes, instead of 4 floats
|
|
eff840bb
|
2021-04-01T23:30:59
|
|
Add OpenGLES implementation
|
|
32e79101
|
2021-04-01T20:27:22
|
|
Fix warnings
|
|
6e47f538
|
2021-04-01T20:18:05
|
|
Fix warnings
|
|
4869a3d2
|
2021-04-01T14:36:31
|
|
Add Direct3D9 implementation (not tested)
|
|
4ba37638
|
2021-04-01T12:43:39
|
|
Save and restore SDL renderer state after transforming triangles to rect
|
|
cd0663e0
|
2021-04-01T11:47:45
|
|
Fix declaration-after-statement and remove tabs
|
|
cd4663df
|
2021-04-01T11:11:12
|
|
Update D3D11 for SDL_RenderGeometryRaw
|
|
9f591707
|
2021-04-01T10:37:45
|
|
Update METAL backend for SDL_RenderGeometryRaw
|
|
61d9e916
|
2021-04-01T10:16:27
|
|
For the software renderer, try to reinterpret triangles as SDL_Rect
With Dear ImGui + software renderer, it draws:
- by default at 250 fps
- drops to 70 fps if you show the color picker
- drops to 10 fps if put the color picker fullscreen
|
|
f5794f9e
|
2021-08-10T15:17:59
|
|
Added SDL_SetTextureUserData() and SDL_GetTextureUserData() to associate a user-specified pointer with an SDL texture
|
|
fcfd19db
|
2021-08-10T12:02:17
|
|
Added support for SDL_RENDERER_PRESENTVSYNC to the software renderer
This fixes https://github.com/libsdl-org/SDL/issues/4612
|
|
a91ab883
|
2021-08-06T12:28:03
|
|
Fixed building on Windows with cmake, ninja, and clang
|
|
5fc13fcb
|
2021-08-04T07:00:17
|
|
direct3d: Commit viewport state before clearing, attempt 2.
This reintroduces the fix from 0e16ee8330606603, but just marks
the viewport state as dirty after a clear that needs to expand the
viewport to fill the render target, as we'll need to also reset
the orthographic projection state elsewhere, and that won't
happen if we clear the dirty flag here.
Fixes #4210.
(again.)
(...sorry...!)
|
|
4077f7a2
|
2021-08-03T20:55:45
|
|
Update the Renderer dpi_scale on SIZE_CHANGED event (fix #4580)
The Renderer logical scaling code scales mouse coordinates, and needs to
take the window DPI into account on HIGHDPI windows. However, the
variable which tracks this, renderer->dpi_scale, is set once when the
renderer is created, and then not updated. In the event that the window
is moved to another screen, or the screen DPI otherwise changes, this
will be outdates, and potentially the coordinates will be all wrong.
So let's update the dpi_scale on the SIZE_CHANGED event: it's at least a
possibility that this will be issued on some OSes when DPI changes, and
it's otherwise already handled by SDL_Renderer's event filter.
|
|
9d64e6b4
|
2021-08-03T00:29:33
|
|
Revert "direct3d: Commit dirty viewport state before clearing."
This reverts commit 0e16ee833060660318cc324cf99c9736f4d48499.
|
|
0e16ee83
|
2021-08-03T02:07:47
|
|
direct3d: Commit dirty viewport state before clearing.
Otherwise you might have set the viewport to the full size of
the render target in SDL's API but this change hasn't been
transmitted to Direct3D yet by the time we attempt to clear.
Fixes #4210.
|
|
8f06a629
|
2021-07-30T22:31:17
|
|
render: Fix -Wmaybe-uninitialized warning in RenderDrawLinesWithRects{,F}
The RenderDrawLinesWithRects and RenderDrawLinesWithRectsF functions can
sometimes call QueueCmdFillRects() with the data pointed to by frects
uninitialised. This can occur if none of the lines can be replaced with
rects, in which case the frects array is empty, and nrects is 0.
gcc 10.3.0 will detect this possibility, and print a warning like:
/home/david/Development/SDL/src/render/SDL_render.c: In function 'RenderDrawLinesWithRectsF':
/home/david/Development/SDL/src/render/SDL_render.c:2725:15: warning: '<unknown>' may be used uninitialized [-Wmaybe-uninitialized]
2725 | retval += QueueCmdFillRects(renderer, frects, nrects);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/david/Development/SDL/src/render/SDL_render.c:499:1: note: by argument 2 of type 'const SDL_FRect *' to 'QueueCmdFillRects' declared here
499 | QueueCmdFillRects(SDL_Renderer *renderer, const SDL_FRect * rects, const int count)
| ^~~~~~~~~~~~~~~~~
This is harmless, because when this is uninitialised, nrects is always
0, so QueueCmdFillRects() does nothing anyway. We therefore can work
around this by only calling QueueCmdFillRects() when nrects is nonzero.
Somewhat impressively, gcc recognises that this is now safe.
|
|
585c11c5
|
2021-07-30T00:33:15
|
|
direct3d: Fix possibly-incorrect scissor test when clearing.
Thanks to @JayFoxRox who did the detective work on this!
Fixes #3357.
|
|
8f38ba4d
|
2021-07-29T18:02:47
|
|
Fix casts that should be using uintptr_t
This is needed to support CHERI, and thus Arm's experimental Morello
prototype, where pointers are implemented using unforgeable capabilities
that include bounds and permissions metadata to provide fine-grained
spatial and referential memory safety, as well as revocation by sweeping
memory to provide heap temporal memory safety.
On most systems (anything with a flat memory hierarchy rather than using
segment-based addressing), size_t and uintptr_t are the same type.
However, on CHERI, size_t is just an integer offset, whereas uintptr_t
is still a capability as described above. Casting a pointer to size_t
will strip the metadata and validity tag, and casting from size_t to a
pointer will result in a null-derived capability whose validity tag is
not set, and thus cannot be dereferenced without faulting.
The audio and cursor casts were harmless as they intend to stuff an
integer into a pointer, but using uintptr_t is the idiomatic way to do
that and silences our compiler warnings (which our build tool makes
fatal by default as they often indicate real problems). The iconv and
egl casts were true positives as SDL_iconv_t and iconv_t are pointer
types, as is NativeDisplayType on most OSes, so this would have trapped
at run time when using the round-tripped pointers. The gles2 casts were
also harmless; the OpenGL API defines this argument to be a pointer type
(and uses the argument name "pointer"), but it in fact represents an
integer offset, so like audio and cursor the additional idiomatic cast
is needed to silence the warning.
|
|
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
|
|
dd2a2858
|
2021-06-10T12:00:56
|
|
Remove leftovers
|
|
ca969eb2
|
2021-04-24T10:29:52
|
|
Remove gles2 vita render
|
|
e87c7940
|
2021-04-13T14:42:38
|
|
Fixed bug 3829 - Don't FOURCC format for target textures
FOURCC isn't supported by renderer back-ends for target access
So use a correct format and fallback to with native/yuv path
|
|
57c2a456
|
2021-04-02T14:01:41
|
|
render: draw when hidden, except on iOS and Android.
Fixes #2979.
|
|
e14fb54e
|
2021-03-16T10:47:57
|
|
[KMSDRM] Undo SDL_CreateRenderer() modifications aimed at create opengles2 when KMSDRM is in use because it's a harmful solution.
|
|
108bb5aa
|
2021-03-16T00:51:17
|
|
[KMSDRM] Modify SDL_CreateRenderer() to create an opengles2 renderer when the KMSDRM backend is being used and no renderer name has been specified.
|
|
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
|
|
47c6270e
|
2020-12-09T15:28:57
|
|
Fix a bug in vitagles2 renderer
|
|
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
|
|
63e223fa
|
2020-11-23T12:45:09
|
|
Set initial blend mode
|
|
6c3bf565
|
2020-11-23T12:44:54
|
|
Unified build with both renderers
|
|
01311054
|
2020-11-21T23:04:43
|
|
Fix render name
|
|
6ba84975
|
2020-11-21T23:04:27
|
|
Remove vita2d render, add raw gxm render
|
|
ef0bbfd6
|
2020-11-16T20:40:22
|
|
Include anf fix vita2d renderer
|
|
dbb730d3
|
2020-11-14T23:37:26
|
|
Separate vita piglet renderer. Add proper render initialization and window re-creation.
|
|
d75ea51a
|
2020-11-02T20:05:55
|
|
Fix texture shaders
|
|
2e3dd0a6
|
2020-11-02T18:14:57
|
|
Remove debug log
|
|
80036230
|
2020-11-02T18:10:09
|
|
Cg shaders for vita gles2
|
|
0ed17131
|
2021-03-04T18:27:47
|
|
update SDL_COMPOSE_ERROR macro for windows clang-cl
from a patchset by Vladislav Dmitrievich Turbanov:
https://github.com/libsdl-org/SDL/pull/4062
|
|
f2a2d0c6
|
2021-02-15T22:56:20
|
|
SDL_render_d3d.c: fix build with SDL_LEAN_AND_MEAN
|
|
9b9d0d48
|
2021-02-15T11:49:09
|
|
mac/iOS: allow Metal in windows created without an explicit backend
Fixes SDL_CreateWindowAndRenderer (and similar situations) not choosing a Metal backend. See #3991.
Passing an explicit backend into CreateWindow, eg SDL_WINDOW_OPENGL or SDL_WINDOW_METAL, will still prevent the window from being used with other backend types.
|
|
69e9b2ac
|
2021-02-01T22:35:46
|
|
Fixed bug 5471 - Creating a fullscreen desktop window goes windowed temporarily
This is caused by the Metal renderer recreating the window because by default we create an OpenGL window on macOS.
It turns out that at least on macOS 10.15, a window that has been initialized for OpenGL can also be used with Metal. So we'll skip recreating the window in that case.
|
|
dc0ec827
|
2021-01-29T13:38:39
|
|
Remove old YUV fixme
|
|
1e5f0073
|
2021-01-27T10:58:36
|
|
Fixed building with mingw64
|
|
70b353d1
|
2021-01-27T10:54:49
|
|
SDL_Update{YUV,NV}Texture: also intersect rect with texture dimension
|
|
13626c36
|
2021-01-27T10:20:13
|
|
SDL_UpdateTexture: intersect update rect with texture dimension
- fix crash with software renderer
- fix non texture update with opengl/gles2
|
|
de85d612
|
2021-01-25T20:51:47
|
|
Fixed bug 5497 - SDL_COMPOSE_ERROR is wrong
UMU
#define SDL_COMPOSE_ERROR(str) SDL_STRINGIFY_ARG(__FUNCTION__) ", " str
I think SDL_STRINGIFY_ARG should be removed.
#define SDL_COMPOSE_ERROR(str) __FUNCTION__ ", " str
(verified with Visual Studio 2019)
|
|
f40551c5
|
2021-01-25T22:17:11
|
|
GLES2 SDL_Renderer: remove old ZUNE_HD defines and simplify shader cache
|