Skip to content

Commit

Permalink
LibGL: Remove glPush/PopMatrix debug spam
Browse files Browse the repository at this point in the history
Even behind the `GL_DEBUG` macro this was too noisy.
  • Loading branch information
gmta authored and awesomekling committed Dec 30, 2021
1 parent 3a5f69b commit f2d8fcb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Userland/Libraries/LibGL/SoftwareGLContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,6 @@ void SoftwareGLContext::gl_push_matrix()

RETURN_WITH_ERROR_IF(m_in_draw_state, GL_INVALID_OPERATION);

dbgln_if(GL_DEBUG, "glPushMatrix(): Pushing matrix to the matrix stack (matrix_mode {})", m_current_matrix_mode);

switch (m_current_matrix_mode) {
case GL_PROJECTION:
RETURN_WITH_ERROR_IF(m_projection_matrix_stack.size() >= PROJECTION_MATRIX_STACK_LIMIT, GL_STACK_OVERFLOW);
Expand All @@ -462,8 +460,6 @@ void SoftwareGLContext::gl_pop_matrix()

RETURN_WITH_ERROR_IF(m_in_draw_state, GL_INVALID_OPERATION);

dbgln_if(GL_DEBUG, "glPopMatrix(): Popping matrix from matrix stack (matrix_mode = {})", m_current_matrix_mode);

switch (m_current_matrix_mode) {
case GL_PROJECTION:
RETURN_WITH_ERROR_IF(m_projection_matrix_stack.size() == 0, GL_STACK_UNDERFLOW);
Expand Down

0 comments on commit f2d8fcb

Please sign in to comment.