| 80:9f7bfc0a1dc3 | 81:84a546e282b7 |
|---|---|
| 102 } | 102 } |
| 103 cxmutstr msg = cx_strcat(3, message, CX_STR(" GL Error: "), cx_str(glerr)); | 103 cxmutstr msg = cx_strcat(3, message, CX_STR(" GL Error: "), cx_str(glerr)); |
| 104 asc_error_cxstr(cx_strcast(msg)); | 104 asc_error_cxstr(cx_strcast(msg)); |
| 105 cx_strfree(&msg); | 105 cx_strfree(&msg); |
| 106 } | 106 } |
| 107 | |
| 108 int asc_error_catch_all_gl(void) { | |
| 109 GLenum error; | |
| 110 int ret = 0; | |
| 111 while ((error = glGetError()) != GL_NO_ERROR) { | |
| 112 asc_error_gl(error, CX_STR("Uncaught")); | |
| 113 ret = 1; | |
| 114 } | |
| 115 return ret; | |
| 116 } |