From cce33eef8077a7ec14184d1fd6c0e9546b9bedcd Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Tue, 30 Nov 2021 06:39:08 +0100 Subject: [PATCH] gfx/shader/texture: Fix incorrect placement of modified_type The previous placement would result in the properties not yet existing. --- source/gfx/shader/gfx-shader-param-texture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gfx/shader/gfx-shader-param-texture.cpp b/source/gfx/shader/gfx-shader-param-texture.cpp index 5cf1ab11..ffdb2892 100644 --- a/source/gfx/shader/gfx-shader-param-texture.cpp +++ b/source/gfx/shader/gfx-shader-param-texture.cpp @@ -199,7 +199,6 @@ void streamfx::gfx::shader::texture_parameter::properties(obs_properties_t* prop obs_property_set_modified_callback2(p, modified_type, this); obs_property_list_add_int(p, D_TRANSLATE(ST_I18N_TYPE_FILE), static_cast(texture_type::File)); obs_property_list_add_int(p, D_TRANSLATE(ST_I18N_TYPE_SOURCE), static_cast(texture_type::Source)); - modified_type(this, props, p, settings); } { @@ -229,6 +228,8 @@ void streamfx::gfx::shader::texture_parameter::properties(obs_properties_t* prop }, obs::source_tracker::filter_scenes); } + + modified_type(this, props, nullptr, settings); } }