libobs: Call debug marker after null check, not before
This commit is contained in:
parent
7e77294eed
commit
3ef5393d42
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user