From 3ef5393d42d84fcef30901b008925dd13a673f3f Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 29 Aug 2019 21:46:13 -0700 Subject: [PATCH] libobs: Call debug marker after null check, not before --- libobs/obs-scene.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index 35891a384..dafae0037 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -462,14 +462,14 @@ static inline bool item_texture_enabled(const struct obs_scene_item *item) static void render_item_texture(struct obs_scene_item *item) { - GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_ITEM_TEXTURE, - "render_item_texture"); - gs_texture_t *tex = gs_texrender_get_texture(item->item_render); if (!tex) { return; } + GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_ITEM_TEXTURE, + "render_item_texture"); + gs_effect_t *effect = obs->video.default_effect; enum obs_scale_type type = item->scale_filter; uint32_t cx = gs_texture_get_width(tex);