obs-studio/libobs-opengl
PatTheMav 27ba216271 libobs-opengl: Fix projector crash with external macOS displays
When an external display is disconnected with a fullscreen projector
attached to it, Qt will trigger a resize of the window twice, which
makes the renderer queue 2 resize event blocks.

At the time when those blocks are run, Qt's window destructor will have
reset all pointers, and the block directly accesses pointers within
structures identified by pointers, which are invalid by that point.

This commit makes a block return early if the associated window has
been destroyed already and also explicitly checks for valid pointers
after.
2023-02-15 16:34:21 +01:00
..
.gitignore first commit 2013-09-30 19:37:13 -07:00
CMakeLists.txt Drop GLX renderer 2022-05-24 14:31:48 -03:00
gl-cocoa.m libobs-opengl: Fix projector crash with external macOS displays 2023-02-15 16:34:21 +01:00
gl-egl-common.c libobs-opengl: Accelerate dmabuf import 2023-02-12 19:07:05 -03:00
gl-egl-common.h libobs-opengl: Add create_texture_from_pixmap for EGL 2022-05-15 09:08:53 -03:00
gl-helpers.c libobs: Add support for volume textures 2019-12-15 14:38:26 -08:00
gl-helpers.h libobs-opengl: Fix border color support on GL textures 2022-01-12 06:35:16 -08:00
gl-indexbuffer.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
gl-nix.c libobs-opengl: Drop gl pointers on device_leave_context 2023-01-14 15:33:18 -08:00
gl-nix.h libobs-opengl: Add create_texture_from_pixmap for EGL 2022-05-15 09:08:53 -03:00
gl-shader.c UI,libobs,libobs-opengl,obs-ffmpeg: Remove unneeded cast in switches 2023-01-16 11:52:26 +01:00
gl-shaderparser.c libobs-opengl: SRGB-safe GLSL path for raw loads 2021-01-19 12:24:36 -08:00
gl-shaderparser.h libobs-opengl: Add sincos to HLSL->GLSL transpile 2020-04-07 23:59:14 -07:00
gl-stagesurf.c Revert "libobs-opengl: Use PBO in device_stage_texture on macOS" 2022-01-01 18:38:33 -08:00
gl-subsystem.c libobs: Cleanup unused-parameters 2022-07-19 11:01:00 -04:00
gl-subsystem.h libobs/graphics: Add color space support 2022-03-23 22:35:26 -07:00
gl-texture2d.c libobs-opengl: Accelerate dmabuf import 2023-02-12 19:07:05 -03:00
gl-texture3d.c libobs-opengl: Fix volume texture leak 2020-01-04 01:28:16 -08:00
gl-texturecube.c libobs: Add support for volume textures 2019-12-15 14:38:26 -08:00
gl-vertexbuffer.c libobs-opengl: Empty VAO 2019-06-24 23:13:04 -05:00
gl-wayland-egl.c libobs-opengl: Replace OBS_UNUSED with UNUSED_PARAMETER 2022-07-20 08:22:08 +02:00
gl-wayland-egl.h libobs-opengl: Introduce an EGL/Wayland renderer 2021-02-09 09:39:17 -03:00
gl-windows.c libobs-d3d11,libobs-opengl,plugins: Remove unneeded cast in switches 2023-01-16 11:52:26 +01:00
gl-x11-egl.c libobs-opengl: Close display when destroying X11/EGL platform 2023-01-25 13:56:50 -05:00
gl-x11-egl.h libobs-opengl: Introduce the X11/EGL winsys 2021-02-01 19:03:14 -03:00
gl-zstencil.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00