|
@@ -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);
|