Advertisement
elvman

Untitled

Jan 30th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. void myUseProgram(GLint newProgram)
  2. {
  3.     static GLint program = 0;
  4.  
  5.     if (program != newProgram)
  6.     {
  7.         program = newProgram;
  8.         glUseProgram(program);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement