obs-StreamFX/source
Michael Fabian 'Xaymar' Dirks c7cfbff7dd gs-vertexbuffer: Workaround for a foreign deallocation bug in libobs
The graphics subsystem in OBS is freeing memory it didn't allocate, resulting in stack/heap corruption and other kinds of messy situations. The official "fix" for this is to use bmalloc, but then you lose any kind of ability to re-use the same buffer for multiple vertex buffers or update on the fly without adjusting code that is possibly outside of your control (such as in libraries).

This works around the issues by "patching" the gs_vertexbuffer object to no longer hold a reference to the gs_vb_data object. Currently only D3D11 is supported for this kind of hack and it might break in a future obs-studio release.

PR fixing this Issue: https://github.com/jp9000/obs-studio/pull/993
2017-11-03 00:13:07 +01:00
..
filter-blur.cpp filter-blur: Faster initialization for Gaussian Blur 2017-10-22 19:04:41 +02:00
filter-blur.h filter-blur: Remove unused and duplicate functions 2017-09-18 00:05:40 +02:00
filter-displacement.cpp filter-displacement: Fix loading displacement filter 2017-11-02 17:57:52 +01:00
filter-displacement.h filter-displacement: Formatting improvements 2017-08-19 23:56:05 +02:00
filter-shape.cpp filter-shape: Use new GS classes 2017-09-18 00:05:53 +02:00
filter-shape.h filter-shape: Use new GS classes 2017-09-18 00:05:53 +02:00
filter-transform.cpp filter-transform: Add shearing support 2017-09-18 00:05:55 +02:00
filter-transform.h filter-transform: Actually include new C++ class header 2017-09-18 00:16:46 +02:00
gs-effect.cpp gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-effect.h gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-helper.cpp gs: Fix commit eb1612c6ee 2017-09-18 00:15:57 +02:00
gs-helper.h gs: Fix commit eb1612c6ee 2017-09-18 00:15:57 +02:00
gs-indexbuffer.cpp gs: Fix some type conversion warnings 2017-10-22 18:58:38 +02:00
gs-indexbuffer.h gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-mipmapper.cpp gs, effects: Anisotropic Mipmapper Class 2017-09-18 00:05:54 +02:00
gs-mipmapper.h gs, effects: Anisotropic Mipmapper Class 2017-09-18 00:05:54 +02:00
gs-rendertarget.cpp gs: Leave GS context and then return texture 2017-10-22 18:57:28 +02:00
gs-rendertarget.h gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-texture.cpp gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-texture.h gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-vertex.cpp gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-vertex.h gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
gs-vertexbuffer.cpp gs-vertexbuffer: Workaround for a foreign deallocation bug in libobs 2017-11-03 00:13:07 +01:00
gs-vertexbuffer.h gs: Wrap OBS Graphics Subsystem in proper C++ classes 2017-09-18 00:05:28 +02:00
plugin.cpp filter-blur: Add Box and Gaussian Blur Filter 2017-07-03 02:46:45 +02:00
plugin.h plugin: Formatting 2017-08-19 23:47:54 +02:00
strings.h project: Update Copyright Notice 2017-08-19 23:41:53 +02:00
version.h.in project: Update Copyright Notice 2017-08-19 23:41:53 +02:00