From 3cb4b37e671da5cf0ba5c56097aa7d022a0b6b7f Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 29 Oct 2013 21:58:42 +0000 Subject: [PATCH] Added JUCE_DONT_ASSERT_ON_GLSL_COMPILE_ERROR flag. --- modules/juce_opengl/opengl/juce_OpenGLShaderProgram.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_opengl/opengl/juce_OpenGLShaderProgram.cpp b/modules/juce_opengl/opengl/juce_OpenGLShaderProgram.cpp index 8de767d664..b98b4cefb0 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLShaderProgram.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLShaderProgram.cpp @@ -67,7 +67,7 @@ bool OpenGLShaderProgram::addShader (const char* const code, GLenum type) context.extensions.glGetShaderInfoLog (shaderID, sizeof (infoLog), &infoLogLength, infoLog); errorLog = String (infoLog, (size_t) infoLogLength); - #if JUCE_DEBUG + #if JUCE_DEBUG && ! JUCE_DONT_ASSERT_ON_GLSL_COMPILE_ERROR // Your GLSL code contained compile errors! // Hopefully this compile log should help to explain what went wrong. DBG (errorLog); @@ -97,7 +97,7 @@ bool OpenGLShaderProgram::link() noexcept context.extensions.glGetProgramInfoLog (programID, sizeof (infoLog), &infoLogLength, infoLog); errorLog = String (infoLog, (size_t) infoLogLength); - #if JUCE_DEBUG + #if JUCE_DEBUG && ! JUCE_DONT_ASSERT_ON_GLSL_COMPILE_ERROR // Your GLSL code contained link errors! // Hopefully this compile log should help to explain what went wrong. DBG (errorLog);