diff Framework/Scene2D/Internals/OpenGLTextureProgram.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/OpenGLTextureProgram.cpp	Tue Apr 30 09:17:45 2019 +0200
+++ b/Framework/Scene2D/Internals/OpenGLTextureProgram.cpp	Tue Apr 30 16:07:48 2019 +0200
@@ -20,11 +20,13 @@
 
 
 #include "OpenGLTextureProgram.h"
+#include "OpenGLShaderVersionDirective.h"
 
 static const unsigned int COMPONENTS = 2;
 static const unsigned int COUNT = 6;  // 2 triangles in 2D
 
 static const char* VERTEX_SHADER = 
+  ORTHANC_STONE_OPENGL_SHADER_VERSION_DIRECTIVE
   "attribute vec2 a_texcoord;             \n"
   "attribute vec4 a_position;             \n"
   "uniform mat4 u_matrix;                 \n"