kc3-lang/SDL/src/render

Branch :


Log

Author Commit Date CI Message
60ddb74c 2022-02-02 12:19:37 video: rework how we prepare a texture framebuffer. Now we see if we can create an SDL_Renderer, and if that renderer reports itself as "accelerated," and added some initial heuristics to the OpenGL renderer to make better decisions about what qualifies as "accelerated." This adds some FIXMEs that might be merely hypothetical, and removes the old OpenGL checks from the video subsystem that probably weren't meaningful in modern times. This will definitely need to improve the existing list in the GL renderer, to catch things like llvmpipe, etc. Reference issue #4624.
293a0aa8 2022-02-22 10:54:21 opengl: If GL version >= 2.0, NPOT textures are supported, so favor them. Fixes #5041.
978fbc32 2022-02-21 12:02:44 Fixed compile warnings
9d86ec85 2022-02-18 09:57:10 Palette format: software Render Jitter in rotation (see #5143) - same fix applied for rotation with palette surfaces - allow other 8bits format (eg 332)
ceb09ee7 2022-02-17 23:11:02 Fixed #5143 - software Render Jitter in rotation better precision calculating rotated coordinates and interpolation
75ffa24e 2022-02-15 13:35:59 Software Render Jitter in rotation (bug #5143) The output surface doesn't necessarily to have even width and height.
61abc4e5 2022-02-15 11:34:50 PSP: SDL_RenderCopyEx rotation and global scaling around the wrong way (see #bug 3070)
18b76fcc 2022-02-15 11:33:56 Fixed bug #3070 - SDL_RenderCopyEx rotation and global scaling around the wrong way (software renderer)
e366ad12 2022-02-15 10:02:34 Fixed bug #2308: SDL_RenderCopyEx rotation center precision (software renderer)
66ee79bd 2022-02-14 10:59:25 [PSP] Don't swizzle streaming textures It was causing issues in the teststreaming demo and unswizzling later is inefficient and causes issues.
abc8198a 2022-02-09 18:07:46 Render all sides when drawing rect on PSP
2b572dff 2022-02-08 18:03:11 Make RenderCopyEx rotate around center This still isn't perfect. The rotation is the wrong way around and the images are upside down.
54304b97 2022-02-08 18:31:43 Fix rotation direction and center point on PSP
b0dd4c7d 2022-01-10 09:22:07 SDL_Render OpenGL: do batching like in the GLES2 backend (with no VBO)
90f0d2ce 2022-01-10 09:17:50 Revert OpenGL point drawing performance, do to proper batching
6d5592a2 2022-02-05 12:02:54 minor cleanup of SDL_CreateRenderer
2cfc83ea 2022-01-22 17:10:37 sync D3D_RenderReadPixels with D3D11_RenderReadPixels - use the result of SDL_ConvertPixels to propagate error - get rid of the verbose error message of D3D11_RenderReadPixels in case SDL_ConvertPixels failed
f7d3abdd 2022-01-29 10:19:08 Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport. Handle the case when there is blending
60deadba 2022-01-17 17:22:30 re-use return value of SDL_SetError/WIN_SetErrorFromHRESULT/SDL_OutOfMemory
ebdd5366 2022-01-17 16:26:02 use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError
f5911bdc 2022-01-28 15:31:56 GLES2: disable texcoord when not using it (see bug #5235) similar to opengl backend code: - glDisableVertexAttribArray doesn't need to depend on 'drawstate.texture' value - move binding code to SetCopyState()
096fe37b 2022-01-28 14:19:10 GLES2: revert https://github.com/libsdl-org/SDL/commit/7bf8c5a388bc41dde830e4baabcb53d507e64448
a988ce55 2022-01-28 17:24:59 Fixed bug #964 - SDL_RenderCopy stretch loses proportion on viewport boundaries
7bf8c5a3 2022-01-27 14:19:52 GLES2: disable texcoord when not using it (see bug #5235)
c6ec5a07 2022-01-02 15:43:35 d3d11: Respect SDL_HINT_RENDER_DIRECT3D_THREADSAFE when creating device
426c1f4b 2022-01-19 14:27:58 opengles2: fix comment about client-side arrays.
f9b918ff 2022-01-11 16:15:45 opengles2: Use client-side arrays on everything but Emscripten. Turns out they're much faster! Fixes #5206.
a29d3acc 2022-01-09 11:11:34 Updated Bresenham line drawing to match software renderer output
1f32dd8e 2022-01-09 06:36:18 Fixed overdraw with duplicate points, fixed not drawing single point lines
c275436f 2022-01-09 00: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.
3b083b99 2022-01-08 14:07:42 Fixed compile warning
b82af9df 2022-01-08 14:05:50 Improved OpenGL point drawing performance (thanks @slime73!) We'll do proper call batching for the SDL 2.0.22 release
1a73c45a 2022-01-08 13:34:49 Fixed incorrect color in the OpenGL driver
3cdda8f8 2022-01-08 21:58:26 PSP: use 'data' variable which is alread the driver data
4ef2529b 2022-01-08 12:37:57 More efficient calculation of render_count
5346c93b 2022-01-08 12:28:43 Fixed assertion on number of points rendered
4b719620 2022-01-08 12:02:08 Prevent overdraw with connected line segments
09ece861 2022-01-08 11:36:29 Added the hint SDL_HINT_RENDER_LINE_METHOD to select the line rendering method
c1e60798 2022-01-08 11:09:11 As an optimization, draw horizontal and vertical lines using rectangles
3da7c630 2022-01-08 11:07:03 Assert that we have drawn the expected number of points
9f56faee 2022-01-08 10:59:31 Added line drawing using Bresenham's line algorithm (thanks @rtrussell!)
fe3a33a0 2022-01-08 10:10:18 Use RenderGeometry for drawing lines at all scales
1694782b 2022-01-08 09:32:23 Remove redundant work when render scale is 1.0
2026a78d 2022-01-08 09:23:58 Don't flush in RenderDraw*WithRects() This allows these functions to be reused in the future for other primitives
18e4d9fe 2022-01-08 09:02:25 Re-enable line drawing path in render drivers This is still used for scaled line drawing in RenderDrawLinesWithRects()
4472b831 2022-01-08 11:56:56 PSP_RunCommandQueue: fix argument to PSP_SetBlendState() src/render/psp/SDL_render_psp.c: In function 'PSP_RunCommandQueue': src/render/psp/SDL_render_psp.c:1200: warning: passing argument 1 of 'PSP_SetBlendState' from incompatible pointer type
cc201337 2022-01-07 20:20:57 render: Fixed some compiler warnings. Fixes #5197.
6d3b5d66 2022-01-07 18:18:53 psp: draw lines with RenderGeometry, same as with the other renderers.
9cb2c549 2022-01-07 22:43:30 Remove QueueDrawLines from D3D, D3D11
b88b6b3c 2022-01-07 22:43:12 Remove QueueDrawLines from METAL
9aac5531 2022-01-07 22:42:52 Remove QueueDrawLines from GL, GLES, GLES2
8ea8b2e6 2022-01-07 22:42:13 Use QueueDrawLine if provided, otherwise use RenderGeometry
c4987274 2022-01-07 22:14:28 render: Use RenderGeometry to draw lines This patch is from @1bsyl Fixes #5061.
4b38d4c9 2022-01-07 12:37:28 Leave the Metal view active on the window when recreating the Metal renderer Fixes https://github.com/libsdl-org/SDL/issues/5140 Also move the metal tag definition to SDL_syswm.h so it can be used by applications
88ac517d 2022-01-07 15:03:47 opengles2: Fix point drawing.
515b5f2a 2021-12-22 12:04:10 Fix build errors in PSP port
34e34ad5 2021-12-22 11:43:07 Remove debug code from PSP renderer
520c89a0 2021-01-19 20:11:36 cleaning
09f4711f 2021-01-09 12:52:55 Fix LRU when destroying texture.
c3ec62d6 2021-01-09 11:25:39 PSP lazier blend states, display mode report with 16bit option
0f5368fe 2021-01-09 10:33:38 PSP cached blending and texturing state, ABGR1555 stencil hack
fe405eb2 2020-12-28 14:00:53 fixed LRU cache code
c1f15229 2020-12-27 11:43:22 Spill render targets to ram on PSP
77d874e3 2020-12-26 19:20:17 Attempt to make render to texture work on PSP
120c76c8 2022-01-03 09:40:00 Updated copyright for 2022
8622eda9 2022-01-02 22:34:56 SDL_RenderGeometry / software: TRIANGLE_GET_TEXTCOORD interpolates up to the max values included, so reduce by 1
724468ae 2021-12-13 15:48:55 GL renderer uses glDrawArrays instead of glBegin/glEnd. Also change internal colors sent to GL to use unorm8 components instead of float, for improved performance.
44c84c0d 2021-12-17 17:44:34 GLES2/Big-endian: don“t swap datas for yuv textures (Thanks 0x1F9F1 !)
3a69828e 2021-12-17 13:15:39 Fixed GLES2 back-end on Big Endian Platform (see #5093)
3d5fcb5d 2021-12-16 11:10:07 Fix warning
4342e6bd 2021-12-16 10:53:27 SDL_render.c: lighten the cast syntax
50d49c63 2021-12-16 10:52:36 GLES2 backend: cast with SDL_Vertex and SDL_VertexSolid
0b7b0977 2020-12-27 17:51:39 fix PSP texure artifacts
0341ec93 2021-11-26 11:34:40 Improve performance when vsync is enabled and the game is not reaching the 60 FPS
3a5e148b 2021-12-14 11:02:07 Renderer backends use SDL_Color instead of int for geometry colors.
b08e57e9 2021-12-14 09:32:05 Don't try to create a vbo if we aren't using any vertices
b7885abc 2021-12-14 10:31:55 Fixed bug #5087: SDL_RenderGeometryRaw() passes colors as int* instead of SDL_Color*
323ba6c0 2021-12-13 18:27:49 d3d11 renderer: reduce vertex bandwidth and calculations.
8927d73b 2021-12-12 09:55:23 RenderGeometry: simplify casting (Thanks Daniel Gibson)
d7f66ba1 2021-12-11 20:04:53 Remove strict aliasing warning in opengles2 backend
3e43d6e3 2021-12-11 17:19:00 SDL_RenderGeometry: remove some warning "dereferencing type-punned pointer might break strict-aliasing"
1940d289 2021-12-08 09:41:33 SW Renderer: fix invalid read if VSYNC hint is initially set with an empty value (eg "") because: - GeHint return a value pointer. - SetHint free internally the pointer - The -now invalid- pointer is re-read ==9363== Invalid read of size 1 ==9363== at 0x4946860: SW_CreateRenderer (SDL_render_sw.c:1044) ==9363== by 0x48F0EC3: SDL_CreateRenderer_REAL (SDL_render.c:938) ==9363== by 0x48C5921: SDL_CreateRenderer (SDL_dynapi_procs.h:332) ==9363== by 0x401584: main (main.c:421) ==9363== Address 0x9c24040 is 0 bytes inside a block of size 1 free'd ==9363== at 0x484621F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==9363== by 0x494E403: SDL_free_REAL (SDL_malloc.c:5432) ==9363== by 0x48A6153: SDL_SetHintWithPriority_REAL (SDL_hints.c:76) ==9363== by 0x48A6254: SDL_SetHint_REAL (SDL_hints.c:101)
21d46b7e 2020-12-26 12:46:07 PSP renderer fixed
801dcbc5 2021-12-07 14:04:10 SDL_render_sw.c: fix -Wshadow warnings.
e17a3154 2021-12-07 10:56:48 Fix build issue
7266cf66 2021-12-07 10:54:30 Clean up PSP render code to fit C standard used better
07608bf4 2021-12-07 10:36:19 Fix ISO C90 violations in psp render code
d09f80ef 2021-12-07 11:31:57 SDL_DrawPointsF: fix error message typo
6dafc850 2021-12-07 10:44:12 SDL_DrawLines: minor simpification: - scale is 1.0f, don't need to multiply - typo in error message - remap SDL_DrawLines to SDL_DrawLinesF
a0818a63 2021-12-07 10:07:15 Fixed bug #5071 - Float conversion warnings in SDL_render.c (see also #5003)
e14d1026 2021-11-26 13:12:22 Change viewport and cliprect to float version: from SDL_Rect to SDL_FRect
7828362d 2021-11-24 16:45:06 SDL_Renderer software, D3D11: don't use "renderer->viewport" in back-ends, but use the one from SETVIEWPORT cmd
b786c100 2021-11-26 19:45:16 SDL_render_gl.c: GL_RunCommandQueue: always set viewport_dirty on macOS Without this, moving the window changes the viewport and causes contents to render stretched. Fixes #1504
86c0cf2b 2021-11-26 14:31:20 software: Draw a single pixel for a line with the same start/end point. Otherwise it would drop it, which seems like a bug to me, as it normally fills the endpoint on lines. Reference #2006.
e77cfb9a 2021-11-24 00:29:45 Fixed d3d11 renderer creation
2a24418b 2021-11-23 09:44:37 More "Integer overflow generates Illegal instruction under sanitizers" (see bug #4995)
8dd6edec 2021-11-23 09:30:42 Fixed bug #3232 - Integer overflow generates Illegal instruction under sanitizers + see bug #4995
e18be04b 2021-11-23 08:01:02 Fixed undefined behavior in QueueCmdSetDrawColor() Fixes https://github.com/libsdl-org/SDL/issues/4995 Patch from Andrew Kelley
aef71054 2021-11-22 16:58:04 Use SDL_free
fb218e58 2021-11-22 16:16:04 PSP: use SDL_malloc/SDL_free