summaryrefslogtreecommitdiffstats
path: root/third_party/gles2_book
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/gles2_book')
-rw-r--r--third_party/gles2_book/Chapter_11/Stencil_Test/Stencil_Test.c3
-rw-r--r--third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangle.c3
-rw-r--r--third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c3
-rw-r--r--third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.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.c3
-rw-r--r--third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c3
7 files changed, 7 insertions, 14 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 4ef9a6b..b884e8d 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,9 +29,8 @@ 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_2/Hello_Triangle/Hello_Triangle.c b/third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangle.c
index 3094c14..c57af1c 100644
--- a/third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangle.c
+++ b/third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangle.c
@@ -33,9 +33,8 @@ int htInit ( ESContext *esContext )
" gl_Position = vPosition; \n"
"} \n";
- // TODO(alokp): Shaders containing "precision" do not compile.
GLbyte fShaderStr[] =
- "//precision mediump float; \n"
+ "precision mediump float; \n"
"void main() \n"
"{ \n"
" gl_FragColor = vec4 ( 1.0, 0.0, 0.0, 1.0 );\n"
diff --git a/third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c b/third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c
index 90be08a..108aade 100644
--- a/third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c
+++ b/third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c
@@ -35,9 +35,8 @@ int svsInit ( ESContext *esContext )
" gl_Position = u_mvpMatrix * a_position; \n"
"} \n";
- // TODO(alokp): Shaders containing "precision" do not compile.
GLbyte fShaderStr[] =
- "//precision mediump float; \n"
+ "precision mediump float; \n"
"void main() \n"
"{ \n"
" gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); \n"
diff --git a/third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.c b/third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.c
index f45d214..eb288fc 100644
--- a/third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.c
+++ b/third_party/gles2_book/Chapter_9/MipMap2D/MipMap2D.c
@@ -204,9 +204,8 @@ int mmInit ( 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_Texture2D/Simple_Texture2D.c b/third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c
index d764361..12200fd 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,9 +71,8 @@ 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 07fb147..c2c2da3 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
@@ -98,9 +98,8 @@ int stcInit ( ESContext *esContext )
" 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 af4fb12..5298283 100644
--- a/third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c
+++ b/third_party/gles2_book/Chapter_9/TextureWrap/TextureWrap.c
@@ -105,9 +105,8 @@ 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"