Skip to content

Commit

Permalink
fixup! GLUtils: make VerifyGLState() useful for normal debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lrusak committed Nov 2, 2018
1 parent 555488c commit 1516472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/utils/GLUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ static void PrintMatrix(const GLfloat* matrix, std::string matrixName)

void _VerifyGLState(const char* szfile, const char* szfunction, int lineno)
{
if (!CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->CanLogComponent(LOGOPENGL))
GLenum err = glGetError();
if (err == GL_NO_ERROR)
{
return;
}

GLenum err = glGetError();
if (err == GL_NO_ERROR)
if (!CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->CanLogComponent(LOGOPENGL))
{
return;
}
Expand Down

0 comments on commit 1516472

Please sign in to comment.