From bb1b705cd3a7ecffceebbe4bf892b48b41f8360f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 11 Dec 2015 16:47:22 -0800 Subject: [PATCH] libobs: Put obs_get_default_rect_effect back in temporarily This function was removed even though the browser plugin was using this function on mac, so this is being put back in temporarily while the browser plugin is modified to remove this function. --- libobs/obs.c | 7 +++++++ libobs/obs.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/libobs/obs.c b/libobs/obs.c index 39e93b5e4..8753793e8 100644 --- a/libobs/obs.c +++ b/libobs/obs.c @@ -1360,6 +1360,13 @@ gs_effect_t *obs_get_base_effect(enum obs_base_effect effect) return NULL; } +/* DEPRECATED */ +gs_effect_t *obs_get_default_rect_effect(void) +{ + if (!obs) return NULL; + return obs->video.default_rect_effect; +} + signal_handler_t *obs_get_signal_handler(void) { if (!obs) return NULL; diff --git a/libobs/obs.h b/libobs/obs.h index 14faae4e0..b43f62200 100644 --- a/libobs/obs.h +++ b/libobs/obs.h @@ -533,6 +533,10 @@ enum obs_base_effect { /** Returns a commonly used base effect */ EXPORT gs_effect_t *obs_get_base_effect(enum obs_base_effect effect); +/* DEPRECATED: gets texture_rect default effect */ +DEPRECATED_START EXPORT gs_effect_t *obs_get_default_rect_effect(void) + DEPRECATED_END; + /** Returns the primary obs signal handler */ EXPORT signal_handler_t *obs_get_signal_handler(void);