Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Hide unneeded GL errors. Fix modulemap
Browse files Browse the repository at this point in the history
  • Loading branch information
allusive-dev committed Nov 15, 2023
1 parent b5f69b3 commit 3f4bb5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('compfy', 'c', version: '1.6.0',
project('compfy', 'c', version: '1.6.1',
default_options: ['c_std=c11', 'warning_level=1'])

cc = meson.get_compiler('c')
Expand Down
19 changes: 11 additions & 8 deletions src/backend/gl/gl_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static inline const char *gl_get_err_str(GLenum err) {
CASESTRRET(GL_INVALID_ENUM);
CASESTRRET(GL_INVALID_VALUE);
CASESTRRET(GL_INVALID_OPERATION);
CASESTRRET(GL_INVALID_FRAMEBUFFER_OPERATION);
// CASESTRRET(GL_INVALID_FRAMEBUFFER_OPERATION);
CASESTRRET(GL_OUT_OF_MEMORY);
CASESTRRET(GL_STACK_UNDERFLOW);
CASESTRRET(GL_STACK_OVERFLOW);
Expand All @@ -221,13 +221,16 @@ static inline void gl_check_err_(const char *func, int line) {

while (GL_NO_ERROR != (err = glGetError())) {
const char *errtext = gl_get_err_str(err);
if (errtext) {
log_printf(tls_logger, LOG_LEVEL_ERROR, func,
"GLX error at line %d: %s", line, errtext);
} else {
log_printf(tls_logger, LOG_LEVEL_ERROR, func,
"GLX error at line %d: %d", line, err);
}

// Hide GL Errors Temporarily. -Allusive

// if (errtext) {
// log_printf(tls_logger, LOG_LEVEL_ERROR, func,
// "GLX error at line %d: %s", line, errtext);
// } else {
// log_printf(tls_logger, LOG_LEVEL_ERROR, func,
// "GLX error at line %d: %d", line, err);
// }
}
}

Expand Down
File renamed without changes.

0 comments on commit 3f4bb5d

Please sign in to comment.