Mercurial > hg > orthanc-stone
diff Framework/Scene2D/Internals/OpenGLColorTextureProgram.cpp @ 611:e3f21a265be5
Added version directive to GLSL shader code + glew init function in sample code
AND commented-out glew init function in StoneInitialize
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 30 Apr 2019 16:07:48 +0200 |
parents | b66ced2c43d4 |
children | 1091b2adeb5a |
line wrap: on
line diff
--- a/Framework/Scene2D/Internals/OpenGLColorTextureProgram.cpp Tue Apr 30 09:17:45 2019 +0200 +++ b/Framework/Scene2D/Internals/OpenGLColorTextureProgram.cpp Tue Apr 30 16:07:48 2019 +0200 @@ -20,9 +20,10 @@ #include "OpenGLColorTextureProgram.h" - +#include "OpenGLShaderVersionDirective.h" static const char* FRAGMENT_SHADER = + ORTHANC_STONE_OPENGL_SHADER_VERSION_DIRECTIVE "uniform sampler2D u_texture; \n" "varying vec2 v_texcoord; \n" "void main() \n"