Pārlūkot izejas kodu

Reset blend state for image source

This is more of a temporary fix for the time being, it needs to handle
blend state changes better, perhaps via push/pop of state changes
jp9000 11 gadi atpakaļ
vecāks
revīzija
a01b59fb21
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      plugins/image-source/image-source.c

+ 1 - 0
plugins/image-source/image-source.c

@@ -82,6 +82,7 @@ static void image_source_render(void *data, effect_t effect)
 	if (!context->tex)
 		return;
 
+	gs_reset_blend_state();
 	effect_settexture(effect_getparambyname(effect, "image"), context->tex);
 	gs_draw_sprite(context->tex, 0, context->cx, context->cy);
 }