[Piglit] [PATCH 09/10 v2] sso: Add several misc API error tests
Ian Romanick
idr at freedesktop.org
Sun Apr 27 15:19:20 PDT 2014
On 04/27/2014 02:12 PM, Ian Romanick wrote:
> +static bool
> +glActiveShaderProgram_while_transform_feedback_is_active(void)
> +{
> + static const char *vs_code = "void main() { gl_Position = vec4(0); }";
> + static const char *fs_code = "void main() { }";
> +
> + GLuint vs_prog = 0;
> + GLuint fs_prog = 0;
> + GLuint pipe = 0;
> + GLuint xfb = 0;
> + GLuint buf = 0;
> + bool pass = true;
> + static const char *varyings[] = {"gl_Position"};
> +
> + if (!CreateShaderProgram_with_xfb(source, varyings, 1, &vs_prog)) {
Copy-and-paste bug here. s/source/vs_code/. Already fixed in v3.
More information about the Piglit
mailing list