SDL/src
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
..
atomic Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
audio audio: fix incorrect dynCall in Emscripten audio. 2024-10-18 23:53:40 -04:00
camera VITA: implement camera subsystem 2024-10-17 10:24:17 -07:00
core Revert "Use the correct return type for SDL_GetAndroidJNIEnv()" 2024-10-19 10:20:50 -07:00
cpuinfo Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
dialog Allow building both Cocoa and dummy dialog implementations 2024-10-07 18:01:39 -07:00
dynapi Revert "Use the correct return type for SDL_GetAndroidJNIEnv()" 2024-10-19 10:20:50 -07:00
events If we get a newline character, treat it as SDLK_RETURN 2024-10-17 18:18:38 -07:00
file Report win32 last error string windows_file_open (#11224) 2024-10-15 19:47:06 -07:00
filesystem Include stdbool.h when using Visual Studio 2017+ 2024-10-01 09:57:59 -07:00
gpu Rename GPU properties for consistency 2024-10-15 15:36:26 -07:00
haptic Include stdbool.h when using Visual Studio 2017+ 2024-10-01 09:57:59 -07:00
hidapi Revert "Use the correct return type for SDL_GetAndroidJNIEnv()" 2024-10-19 10:20:50 -07:00
joystick Don't block in Android USB device open 2024-10-17 12:02:24 -07:00
libm libm/e_exp.c: fix gcc warning on 32 bit: 2024-10-10 18:23:20 +03:00
loadso loadso: library handles are now SDL_SharedObject* instead of void*. 2024-10-01 12:16:10 -04:00
locale Re-added SDL_getenv() as a thread-safe getenv() implementation 2024-09-15 09:37:04 -07:00
main Make sure that we quit if we get a terminating event 2024-10-17 17:19:49 -07:00
misc Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
power winrt: Removed WinRT/Windows Phone/UWP support. 2024-09-06 13:28:39 -04:00
process Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
render Clamp the texture alpha and color modulation values to 0-255 2024-10-19 20:18:57 -07:00
sensor Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority() 2024-10-04 08:57:03 -07:00
stdlib Added SDL_StepBackUTF8() 2024-10-09 09:49:10 -07:00
storage Include stdbool.h when using Visual Studio 2017+ 2024-10-01 09:57:59 -07:00
test render: Add SDL_RenderDebugText(). 2024-10-14 02:45:33 -04:00
thread windows/SDL_systhread.c: fix permissions 2024-10-18 05:00:04 +03:00
time Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
timer Always use WaitForSingleObjectEx() as a fallback in SDL_SYS_DelayNS() 2024-10-11 21:18:31 -07:00
video 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
SDL.c Renamed SDL_SANDBOX_UNKNOWN to SDL_SANDBOX_UNKNOWN_CONTAINER 2024-10-18 12:45:07 -07:00
SDL_assert.c Improve support for private platforms (#11220) 2024-10-15 18:02:07 -04:00
SDL_assert_c.h
SDL_error.c Added SDL_SetErrorV() 2024-10-13 09:26:25 -07:00
SDL_error_c.h Use C99 bool internally in SDL 2024-08-22 13:30:02 -07:00
SDL_guid.c
SDL_hashtable.c Fixed warning: ‘new_item.probe_len’ may be used uninitialized in this function 2024-10-10 08:06:18 -07:00
SDL_hashtable.h Removed const qualifiers from SDL_CreateHashTable() parameter types 2024-10-02 16:29:49 -07:00
SDL_hints.c Old env vars as fallback for SDL_VIDEO_DRIVER + SDL_AUDIO_DRIVER #11115 2024-10-12 08:47:02 -07:00
SDL_hints_c.h Use C99 bool internally in SDL 2024-08-22 13:30:02 -07:00
SDL_internal.h Simplified internal SDL_Surface structure 2024-10-01 08:10:04 -07:00
SDL_list.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
SDL_list.h Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
SDL_log.c Check return value of SDL_small_alloc() 2024-10-13 14:07:26 -07:00
SDL_log_c.h
SDL_properties.c Fix typo: DiretMedia->DirectMedia 2024-10-05 00:08:01 -04:00
SDL_properties_c.h Fix typo: DiretMedia->DirectMedia 2024-10-05 00:08:01 -04:00
SDL_utils.c SDL_utils.c: restrict gethostname() usage to non-windows 2024-10-17 12:47:02 +03:00
SDL_utils_c.h Simplified internal SDL_Surface structure 2024-10-01 08:10:04 -07:00