Sam Lantinga
fbbc29159a
Leave letterbox borders set to the frame clear color
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/483
2025-09-02 20:14:34 -07:00
Sam Lantinga
ef19c72015
Set the texture scale and address mode when creating a texture
...
Fixes https://github.com/libsdl-org/sdl2-compat/issues/506
2025-09-02 18:05:31 -07:00
Sam Lantinga
285df94623
Renamed SDL_GPURenderStateDesc to SDL_GPURenderStateCreateInfo for consistency with GPU API conventions
...
Fixes https://github.com/libsdl-org/SDL/issues/12817
2025-08-27 09:14:19 -07:00
Frank Praznik
152ba829a1
video: Try to reconfigure the window for OpenGL without destroying it
...
When attaching a renderer (GL based specifically) to a window that was not created with the appropriate flags, the window would be destroyed and recreated to configure it for the desired rendering backend. While most of the issues with this have been mitigated over time, there can still be some undesirable side effects from doing so on certain platforms.
If the window was just created and was never configured for any graphics context, it is possible that the reconfiguration can be done without destroying the window first.
The Wayland implementation fixes an issue when creating a window with the fullscreen flag on wlroots based Wayland compositors, and can likely be extended to other platforms to avoid unnecessarily destroying/recreating a window in the very common case where a window is created, followed immediately by attaching a renderer.
2025-08-27 12:10:48 -04:00
ceski
270737584e
Fix vsync-off support for direct3d11
2025-08-24 21:33:02 +03:00
Petar Popovic
b63c32e790
SDL_SetRenderDrawBlendMode(): Remove redundant param check
2025-08-08 14:05:33 -04:00
Sam Lantinga
8dedf44929
Fixed warning: initialization of pointer of type 'VkSampler' (aka 'struct VkSampler_T *') to null from a constant boolean expression
...
Fixes https://github.com/libsdl-org/SDL/issues/13628
2025-08-03 07:24:51 -07:00
Petar Popovic
09221820f6
Fix potential memory leak in SDL_render_gles2.c
2025-07-31 16:18:47 -07:00
Brenton Bostick
f361034ac3
fix typos
2025-07-27 08:10:03 -07:00
Ryan C. Gordon
07ef532681
hints: Renamed SDL_HINT_LOG_BACKENDS to SDL_DEBUG_LOGGING.
...
This still logs backend choices, but we might use it for other things. For
example, what Android device is being used, or all the devices we enumerated,
etc.
Ideally this eventually logs all the stuff we often have to ask followup
questions about.
2025-07-22 13:19:30 -04:00
Thomas Stehle
64b19fc504
Added missing handling of texture address mode to SDL render Vulkan backend
2025-07-21 10:21:31 -07:00
Sam Lantinga
86200d1203
Fixed clamp texture address mode in software renderer
2025-07-21 10:20:16 -07:00
Sam Lantinga
7510a67159
Fixed typo
...
Fixes https://github.com/libsdl-org/SDL/issues/13373
2025-07-16 19:31:10 -07:00
Ryan C. Gordon
10004ab0ea
hints: Added SDL_HINT_LOG_BACKENDS.
...
Fixes #13354 .
2025-07-14 19:49:38 -04:00
Michael Fitzmayer
03489e249a
[Nokia N-Gage] Re-enable FPS counter, fix link in README.
...
- Re-enable FPS counter, which is hidden by default anyway - but essential while working on an actual project.
- Fix link in the platform's README.
- Re-order list of supported platforms (alphabetical order to maintain consistency).
2025-07-02 21:27:24 +02:00
Sam Lantinga
727b4924c8
Update the viewport when logical presentation changes
...
Fixes https://github.com/libsdl-org/SDL/issues/13256
2025-06-25 09:58:30 -07:00
Wohlstand
5fcc83d93b
Vita Render: Limit the scope of cliprect to viewport
...
Don't allow cliprect be larger than viewport's scope
(cherry picked from commit 6701f938f7 )
# Conflicts:
# src/render/vitagxm/SDL_render_vita_gxm.c
2025-06-20 14:51:16 -07:00
Wohlstand
1bd5110ff0
Vita: Fixed absence of clipping when viewport is set
...
#13034
(cherry picked from commit 1c09a7117a )
# Conflicts:
# src/render/vitagxm/SDL_render_vita_gxm.c
# src/render/vitagxm/SDL_render_vita_gxm_types.h
2025-06-20 14:51:16 -07:00
Sam Lantinga
d7939abf42
Use consistent style for pointer declarations and casts
2025-06-18 10:03:44 -07:00
Cameron Cawley
f2bcfe3dd2
Correct the texture format used for the N-Gage ( #13192 )
2025-06-08 18:56:24 +02:00
Michael Fitzmayer
685f1720fe
Revert "[Nokia N-Gage] Fix alpha transparency in 4K color mode using BitBltMasked"
...
This reverts commit 2ef7944170 due to unbearable performance issues.
2025-06-07 22:45:54 +02:00
Michael Fitzmayer
cbc9d662ea
[Nokia N-Gage] Add define to disable FPS counter by default.
2025-06-07 15:40:53 +02:00
Michael Fitzmayer
2ef7944170
[Nokia N-Gage] Fix alpha transparency in 4K color mode using BitBltMasked
...
Previously, all transparent pixels were rendered as opaque due to the limitations of the 4K color mode. Replaced Gc()->BitBlt() with Gc()->BitBltMasked() and updated the mask during copy operations to correctly respect the alpha channel of textures, while maintaining good performance.
2025-06-04 21:05:29 +02:00
Michael Fitzmayer
b61586b492
[Nokia N-Gage] Increase max. texture size from 256 to 1024; the previous setting was chosen at random and does not necessarily make sense in practice.
2025-05-31 14:07:49 +02:00
Michael Fitzmayer
7ae64592c9
Restore support for the Nokia N-Gage ( #12148 )
2025-05-22 11:07:22 -07:00
Francisco Javier Trujillo Mata
c89357bf60
Fix wrong callback type
2025-05-20 11:10:43 -07:00
Sam Lantinga
ec685e87fd
Clarify logic in UpdateLogicalPresentation()
2025-05-14 10:12:41 -07:00
Frank Praznik
8aa5b97bb5
renderer: Always use the output size when updating the main view
...
The main view always reflects the size of the output, so don't use the dimensions of the currently bound render target texture when updating it, or it will reflect an incorrect size when the render target texture is unbound.
2025-05-14 09:37:30 -07:00
Petar Popovic
27b256022b
SDL_GetRectIntersectionFloat(): Allow rendering zero-sized srcrect
2025-04-23 16:14:52 -07:00
Sam Lantinga
f35a2736b7
Don't reset the render target when invalidating GPU renderer cache state
...
Fixes https://github.com/libsdl-org/SDL/issues/12646
2025-04-11 09:23:02 -07:00
Ozkan Sezer
0fdfa925f2
rename local pointer vars 'pixel' to 'pixels'
...
Reference issue: https://github.com/libsdl-org/SDL/issues/12749 .
2025-04-08 18:20:03 +03:00
Ozkan Sezer
4c1a3ccd45
rename local vars 'pixel' to 'pixelvalue'
...
Reference issue: https://github.com/libsdl-org/SDL/issues/12749 .
2025-04-07 21:10:51 +03:00
Topi-Matti Ritala
f7b7188837
Add SDL_CreateGPURenderer
2025-04-07 09:26:03 -07:00
Sam Lantinga
36fc1c2c9c
Fixed texture colorspace when creating a texture from a surface
...
Fixes https://github.com/libsdl-org/SDL/issues/12691
2025-03-31 18:49:58 -07:00
Sam Lantinga
633b9f6fb1
Added SDL_SetRenderTextureAddressMode() and SDL_GetRenderTextureAddressMode()
...
Fixes https://github.com/libsdl-org/SDL/issues/4820
Fixes https://github.com/libsdl-org/SDL/issues/12610
2025-03-28 13:51:19 -07:00
Carl Åstholm
dd9b9d4513
Check if GL_OES_EGL_image_external is supported before trying to use it
2025-03-24 19:52:13 -07:00
Sam Lantinga
758eb256b9
Fixed DebugLogRenderCommands() output
2025-03-20 21:24:39 -07:00
Sam Lantinga
4ceb02434b
We need to rebind D3D12 resources after updating them
...
Fixes https://github.com/libsdl-org/SDL/issues/12544
2025-03-20 20:22:00 -07:00
Sam Lantinga
3538abfb82
Revert "Don't update a texture twice in the same batch on D3D12"
...
This reverts commit 0681d08817 .
There's a simpler fix for this.
2025-03-20 19:56:59 -07:00
Sam Lantinga
0681d08817
Don't update a texture twice in the same batch on D3D12
...
Fixes https://github.com/libsdl-org/SDL/issues/12544
2025-03-20 19:51:56 -07:00
Sam Lantinga
10fae8c34b
Fixed Android build warnings
2025-03-20 11:02:33 -07:00
Sam Lantinga
47b0c75470
Make sure we're getting called for the correct window
...
Fixes https://github.com/libsdl-org/SDL/issues/12525
2025-03-19 20:20:36 -07:00
Carl Åstholm
14deef997c
emscripten: Fix undefined behavior in opengles2 renderer
2025-03-18 19:18:24 -07:00
Sam Lantinga
82335fd0e9
Fixed building with SDL_LEAN_AND_MEAN
...
Fixes https://github.com/libsdl-org/SDL/issues/12578
2025-03-18 09:55:23 -07:00
JaimeHW
3e5664a5be
Fix return type in SDL_CreateGPURenderState
2025-03-17 15:22:49 -07:00
Anonymous Maarten
b9504f247c
opengl: pixelart fragment shader uses GLSL version 1.30
2025-03-15 21:58:10 -07:00
Sam Lantinga
ad9f9af4ed
Removed accidentally enabled debug code
2025-03-15 09:17:55 -07:00
Sam Lantinga
02faa8f75c
Rename SDL_SetGPURenderStateFragmentUniformData() to SDL_SetGPURenderStateFragmentUniforms()
2025-03-14 09:26:30 -07:00
Sam Lantinga
2aee105b43
Added support for custom shaders with the GPU renderer
...
Added an example of MSDF font rendering with the SDL 2D renderer
2025-03-14 09:26:30 -07:00
Sam Lantinga
1ae4ef65e6
Fixed incorrect assert
2025-03-13 22:37:08 -07:00