mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 04:50:29 +00:00
LibGL: Report GL errors to debug console
This commit is contained in:
parent
c5abef86db
commit
c846ed0a2c
Notes:
sideshowbarker
2024-07-17 20:35:26 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/c846ed0a2c9 Pull-request: https://github.com/SerenityOS/serenity/pull/12017 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 7 additions and 5 deletions
|
@ -43,15 +43,17 @@ static constexpr size_t TEXTURE_MATRIX_STACK_LIMIT = 8;
|
|||
return; \
|
||||
}
|
||||
|
||||
#define RETURN_WITH_ERROR_IF(condition, error) \
|
||||
if (condition) { \
|
||||
if (m_error == GL_NO_ERROR) \
|
||||
m_error = error; \
|
||||
return; \
|
||||
#define RETURN_WITH_ERROR_IF(condition, error) \
|
||||
if (condition) { \
|
||||
dbgln_if(GL_DEBUG, "{}(): error {:#x}", __func__, error); \
|
||||
if (m_error == GL_NO_ERROR) \
|
||||
m_error = error; \
|
||||
return; \
|
||||
}
|
||||
|
||||
#define RETURN_VALUE_WITH_ERROR_IF(condition, error, return_value) \
|
||||
if (condition) { \
|
||||
dbgln_if(GL_DEBUG, "{}(): error {:#x}", __func__, error); \
|
||||
if (m_error == GL_NO_ERROR) \
|
||||
m_error = error; \
|
||||
return return_value; \
|
||||
|
|
Loading…
Reference in a new issue