summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c3
-rw-r--r--third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c3
-rw-r--r--third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c5
-rw-r--r--third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c3
4 files changed, 9 insertions, 5 deletions
diff --git a/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c b/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
index b884e8d..4ef9a6b 100644
--- a/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
+++ b/third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c
@@ -29,8 +29,9 @@ int stInit ( ESContext *esContext )
" gl_Position = a_position; \n"
"} \n";
+ // TODO(alokp): Shaders containing "precision" do not compile.
GLbyte fShaderStr[] =
- "precision mediump float; \n"
+ "//precision mediump float; \n"
"uniform vec4 u_color; \n"
"void main() \n"
"{ \n"
diff --git a/third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c b/third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c
index 12200fd..d764361 100644
--- a/third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c
+++ b/third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c
@@ -71,8 +71,9 @@ int stInit ( ESContext *esContext )
" v_texCoord = a_texCoord; \n"
"} \n";
+ // TODO(alokp): Shaders containing "precision" do not compile.
GLbyte fShaderStr[] =
- "precision mediump float; \n"
+ "//precision mediump float; \n"
"varying vec2 v_texCoord; \n"
"uniform sampler2D s_texture; \n"
"void main() \n"
diff --git a/third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c b/third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c
index 597982a..07fb147 100644
--- a/third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c
+++ b/third_party/gles2_book/Chapter_9/Simple_TextureCubemap/Simple_TextureCubemap.c
@@ -97,9 +97,10 @@ int stcInit ( ESContext *esContext )
" gl_Position = a_position; \n"
" v_normal = a_normal; \n"
"} \n";
-
+
+ // TODO(alokp): Shaders containing "precision" do not compile.
GLbyte fShaderStr[] =
- "precision mediump float; \n"
+ "//precision mediump float; \n"
"varying vec3 v_normal; \n"
"uniform samplerCube s_texture; \n"
"void main() \n"
diff --git a/third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c b/third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c
index 5298283..af4fb12 100644
--- a/third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c
+++ b/third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c
@@ -105,8 +105,9 @@ int twInit ( ESContext *esContext )
" v_texCoord = a_texCoord; \n"
"} \n";
+ // TODO(alokp): Shaders containing "precision" do not compile.
GLbyte fShaderStr[] =
- "precision mediump float; \n"
+ "//precision mediump float; \n"
"varying vec2 v_texCoord; \n"
"uniform sampler2D s_texture; \n"
"void main() \n"