Browse Source

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 10 years ago
parent
commit
95e63992cb
1 changed files with 1 additions and 1 deletions
  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);
 	for (i = 0; i < passes; 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(tech);