Skip to content

Commit

Permalink
Merge pull request #1498 from Benjamin-L/master
Browse files Browse the repository at this point in the history
Fixed erroneous TransformFeedbackNotSupported error
  • Loading branch information
tomaka committed Jul 10, 2016
2 parents 54ba4be + bbabdd3 commit ab19993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/program/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ impl Program {

// TODO: move somewhere else
if transform_feedback_varyings.is_some() &&
(facade.get_context().get_version() >= &Version(Api::Gl, 3, 0) ||
!facade.get_context().get_extensions().gl_ext_transform_feedback)
!(facade.get_context().get_version() >= &Version(Api::Gl, 3, 0)) &&
!facade.get_context().get_extensions().gl_ext_transform_feedback
{
return Err(ProgramCreationError::TransformFeedbackNotSupported);
}
Expand Down

0 comments on commit ab19993

Please sign in to comment.