Advertisement
Kitomas

gl::errLogAll as of 2024-02-08

Feb 9th, 2024
813
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 1 0
  1. void gl::errLogAll(int lineNumber, const char* fileName){
  2.   Uint32 errorCode = gl::errLog(-2); //-2 for no print at all
  3.   if(errorCode != GL_NO_ERROR){
  4.     SDL_Log("%s : %4i:", fileName, lineNumber);
  5.     gl::errLog(-1,errorCode);
  6.     do {
  7.       gl::errLog(-1);
  8.     } while(errorCode != GL_NO_ERROR);
  9.   }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement