- float y_offset_0[] = { -0.5f / width, 0.0f };
- float y_offset_1[] = { 0.5f / width, 0.0f };
- float cbcr_offset0[] = { -1.0f / width, 0.0f };
- float cbcr_offset1[] = { -0.0f / width, 0.0f };
- set_uniform_vec2(uyvy_program_num, "foo", "luma_offset_0", y_offset_0);
- set_uniform_vec2(uyvy_program_num, "foo", "luma_offset_1", y_offset_1);
- set_uniform_vec2(uyvy_program_num, "foo", "chroma_offset_0", cbcr_offset0);
- set_uniform_vec2(uyvy_program_num, "foo", "chroma_offset_1", cbcr_offset1);
+ glUniform2f(uyvy_luma_offset_0_location, -0.5f / width, 0.0f);
+ check_error();
+ glUniform2f(uyvy_luma_offset_1_location, 0.5f / width, 0.0f);
+ check_error();
+ glUniform2f(uyvy_chroma_offset_0_location, -1.0f / width, 0.0f);
+ check_error();
+ glUniform2f(uyvy_chroma_offset_1_location, -0.0f / width, 0.0f);
+ check_error();