Commit c0ee9030 authored by Sylvain Thery's avatar Sylvain Thery

Modify shaders that use texture do not compile if not using Qt

parent 07db9767
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
* * * *
*******************************************************************************/ *******************************************************************************/
#ifdef WITH_QT
#include <GL/glew.h> #include <GL/glew.h>
#include "Utils/Shaders/shaderSimpleTexture.h" #include "Utils/Shaders/shaderSimpleTexture.h"
...@@ -114,3 +116,6 @@ void ShaderSimpleTexture::restoreUniformsAttribs() ...@@ -114,3 +116,6 @@ void ShaderSimpleTexture::restoreUniformsAttribs()
} // namespace Utils } // namespace Utils
} // namespace CGoGN } // namespace CGoGN
#else
#pragma message(__FILE__ " not compiled because of mising Qt")
#endif
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* Contact information: cgogn@unistra.fr * * Contact information: cgogn@unistra.fr *
* * * *
*******************************************************************************/ *******************************************************************************/
#ifdef WITH_QT
#include <GL/glew.h> #include <GL/glew.h>
#include "Utils/Shaders/shaderTextureMask.h" #include "Utils/Shaders/shaderTextureMask.h"
...@@ -127,3 +128,7 @@ void ShaderTextureMask::restoreUniformsAttribs() ...@@ -127,3 +128,7 @@ void ShaderTextureMask::restoreUniformsAttribs()
} // namespace Utils } // namespace Utils
} // namespace CGoGN } // namespace CGoGN
#else
#pragma message(__FILE__ " not compiled because of mising Qt")
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment