Skip to content

Commit

Permalink
[OpenGL] MSVC: Condition debugapi.h inclusion on defined(DEBUG)
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jan 13, 2024
1 parent d43ec40 commit deecd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ivis_opengl/gfx_api_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#include <glm/gtc/type_ptr.hpp>

#ifdef WZ_CC_MSVC
#if defined(WZ_CC_MSVC) && defined(DEBUG)
#include <debugapi.h>
#endif

Expand Down Expand Up @@ -1398,7 +1398,7 @@ void gl_pipeline_state_object::printShaderInfoLog(code_part part, GLuint shader)
glGetShaderInfoLog(shader, infologLen, &charsWritten, infoLog);

// Display log in VS output log
#ifdef WZ_CC_MSVC
#if defined(WZ_CC_MSVC) && defined(DEBUG)
OutputDebugStringA(infoLog);
#endif

Expand Down

0 comments on commit deecd3b

Please sign in to comment.