Explorar o código

libobs: Fix filter rendering bug

The parameters order was wrong; sort of a rare thing to see, but it can
happen, especially when it's a function that's not used very often.
jp9000 %!s(int64=11) %!d(string=hai) anos
pai
achega
95e63992cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libobs/obs-source.c

+ 1 - 1
libobs/obs-source.c

@@ -1952,7 +1952,7 @@ static inline void render_filter_tex(gs_texture_t *tex, gs_effect_t *effect,
 	passes = gs_technique_begin(tech);
 	passes = gs_technique_begin(tech);
 	for (i = 0; i < passes; i++) {
 	for (i = 0; i < passes; i++) {
 		gs_technique_begin_pass(tech, i);
 		gs_technique_begin_pass(tech, i);
-		gs_draw_sprite(tex, width, height, 0);
+		gs_draw_sprite(tex, 0, width, height);
 		gs_technique_end_pass(tech);
 		gs_technique_end_pass(tech);
 	}
 	}
 	gs_technique_end(tech);
 	gs_technique_end(tech);