Advertisement
Guest User

patch for mars - AUR

a guest
Apr 26th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.40 KB | None | 0 0
  1. --- mars-build/src/System/window.cpp
  2. +++ mars-build/src/System/window.cpp
  3. @@ -308,13 +308,10 @@
  4.          glEnable(GL_TEXTURE_2D);
  5.  
  6.          if (shader)
  7. -            shader->bind();
  8. +            shader->bind(NULL);
  9.  
  10.          window_.draw(toBeDrawn, states);
  11.  
  12. -        if (shader)
  13. -            shader->unbind();
  14. -
  15.          window_.popGLStates();
  16.          glPopMatrix();
  17.          glPopAttrib();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement