mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 14:40:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <glad/gl.h>
 | |
| 
 | |
| #define SCWX_GL_CHECK_ERROR()                                                  \
 | |
|    {                                                                           \
 | |
|       GLenum err;                                                              \
 | |
|       while ((err = glGetError()) != GL_NO_ERROR)                              \
 | |
|       {                                                                        \
 | |
|          logger_->error("GL Error: {}, {}: {}", err, __FILE__, __LINE__);      \
 | |
|       }                                                                        \
 | |
|    }
 | 
