Simple DirectMedia Layer https://libsdl.org
Find a file
rhett-lee e0321ca5b6
SDL3: SDL_render_gl(render name: opengl) dose not support transparent on Linux/X11 (Bug #11273) (#11274)
SDL3: SDL_render_gl(render name: opengl) dose not support transparent on Linux/X11:

Create SDL window with SDL_WINDOW_TRANSPARENT flag;
Create "opengl" renderer for the window;
The window can't shown with errors:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Bug reason:
SDL_x11window.c:490 : bool X11_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_PropertiesID create_props)
SDL_x11window.c:566 : vinfo = X11_GL_GetVisual(_this, display, screen, transparent);[XVisualInfo *vinfo]
the X11_GL_GetVisual function returns a vinfo dose not support transparent.

Fix:
SDL_x11opengl.c:637 : XVisualInfo *X11_GL_GetVisual(SDL_VideoDevice *_this, Display *display, int screen, bool transparent)
X11_GL_GetVisual should returns a vinfo support transparent when transparent is true.
2024-10-19 20:21:50 -07:00
.github ci: test Apple x64 on macos-13 runner 2024-10-17 02:28:20 +02:00
android-project Add more configChanges to Android Manifest (#11145) 2024-10-10 07:53:34 -07:00
build-scripts releases: don't add static library to MinGW binary release 2024-10-14 21:30:48 +02:00
cmake Added an OpenVR video driver (thanks @cnlohr!) 2024-10-17 19:38:04 -07:00
docs Sync SDL3 wiki -> header 2024-10-19 14:49:21 +00:00
examples examples/game/01-snake: Update game logic in AppIterate, don't use a timer. 2024-10-14 23:17:23 -04:00
include Fix SDL_GetClosestFullscreenDisplayMode documentation 2024-10-19 16:01:08 -04:00
src SDL3: SDL_render_gl(render name: opengl) dose not support transparent on Linux/X11 (Bug #11273) (#11274) 2024-10-19 20:21:50 -07:00
test Add void to run_colorspace_test() function prototype 2024-10-16 11:16:42 -07:00
VisualC Add parametrized build script 2024-10-14 21:30:48 +02:00
VisualC-GDK Added SDL_murmur3_32() 2024-09-28 17:19:01 -07:00
wayland-protocols wayland: Remove kde_output_order_v1 support 2024-10-19 11:16:30 -04:00
Xcode Add parametrized build script 2024-10-14 21:30:48 +02:00
.clang-format Add 'wl_list_for_each_safe' to the clang-format macro list 2024-03-14 10:22:23 -04:00
.clang-tidy
.editorconfig .editorconfig: Remove excess apostrophe at *.cocci 2024-06-16 09:18:17 -07:00
.gitignore Add parametrized build script 2024-10-14 21:30:48 +02:00
.wikiheaders-options .wikiheaders-options: Declare SDL3 to be a stable API! 2024-10-04 15:38:32 -04:00
Android.mk Add SDL_Process subsystem 2024-09-13 15:19:32 -07:00
BUGS.txt Replaced \r\n with \n in SDL root files 2024-10-05 18:15:02 -07:00
CMakeLists.txt Added an OpenVR video driver (thanks @cnlohr!) 2024-10-17 19:38:04 -07:00
CREDITS.md docs: Moved CREDITS and INSTALL to markdown format. 2023-11-29 12:31:27 -05:00
INSTALL.md Updated INSTALL.md 2024-04-10 09:18:42 -04:00
LICENSE.txt Updated copyright for 2024 2024-01-01 13:15:26 -08:00
README-SDL.txt Replaced \r\n with \n in SDL root files 2024-10-05 18:15:02 -07:00
README.md Tweaking documentation for the SDL 3.0 preview release 2024-03-24 06:16:02 -07:00
WhatsNew.txt Replaced \r\n with \n in SDL root files 2024-10-05 18:15:02 -07:00

Simple DirectMedia Layer (SDL) Version 3.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md. If you are migrating to SDL 3.0 from SDL 2.0, the changes are extensively documented in README-migration.md.

Enjoy!

Sam Lantinga (slouken@libsdl.org)