webgl: Only error when beginning transform feedback on programs that have no varying values.

This commit is contained in:
Josh Matthews 2020-04-07 21:57:38 -04:00
parent 2128bf1e05
commit 9673091d7a
6 changed files with 29 additions and 224 deletions

View file

@ -3456,7 +3456,7 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
return;
},
};
if !program.is_linked() || program.transform_feedback_varyings_length() != 0 {
if !program.is_linked() || program.transform_feedback_varyings_length() == 0 {
self.base.webgl_error(InvalidOperation);
return;
};