Skip to content
Snippets Groups Projects
Commit f5fc9e7d authored by Jim's avatar Jim
Browse files

Remove redundant constant from conversion shader

parent 2dbbffe4
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,6 @@ uniform float width_d2; ...@@ -30,7 +30,6 @@ uniform float width_d2;
uniform float height_d2; uniform float height_d2;
uniform float width_d2_i; uniform float width_d2_i;
uniform float height_d2_i; uniform float height_d2_i;
uniform float input_width;
uniform float input_height; uniform float input_height;
uniform texture2d image; uniform texture2d image;
...@@ -62,7 +61,7 @@ float4 PSPlanar420(VertInOut vert_in) : TARGET ...@@ -62,7 +61,7 @@ float4 PSPlanar420(VertInOut vert_in) : TARGET
float v_mul = floor(vert_in.uv.y * input_height); float v_mul = floor(vert_in.uv.y * input_height);
#endif #endif
float byte_offset = floor((v_mul + vert_in.uv.x) * input_width) * 4.0; float byte_offset = floor((v_mul + vert_in.uv.x) * width) * 4.0;
float2 sample_pos[4]; float2 sample_pos[4];
......
...@@ -171,7 +171,6 @@ static void render_convert_texture(struct obs_core_video *video, ...@@ -171,7 +171,6 @@ static void render_convert_texture(struct obs_core_video *video,
set_eparam(effect, "height_d2", fheight * 0.5f); set_eparam(effect, "height_d2", fheight * 0.5f);
set_eparam(effect, "width_d2_i", 1.0f / (fwidth * 0.5f)); set_eparam(effect, "width_d2_i", 1.0f / (fwidth * 0.5f));
set_eparam(effect, "height_d2_i", 1.0f / (fheight * 0.5f)); set_eparam(effect, "height_d2_i", 1.0f / (fheight * 0.5f));
set_eparam(effect, "input_width", fwidth);
set_eparam(effect, "input_height", (float)video->conversion_height); set_eparam(effect, "input_height", (float)video->conversion_height);
effect_settexture(effect, image, texture); effect_settexture(effect, image, texture);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment