diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 23:16:39 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 23:16:39 +0000 |
commit | 3648b96e78d0a10a6ed5b4e629915fa884cf4d0f (patch) | |
tree | 8d90dc8551673755ddf639d0af7e1df03d6a3d21 /third_party/gles2_book | |
parent | 8c8804a595cd215d4a0ff6a3fbf0919b40dfac00 (diff) | |
download | chromium_src-3648b96e78d0a10a6ed5b4e629915fa884cf4d0f.zip chromium_src-3648b96e78d0a10a6ed5b4e629915fa884cf4d0f.tar.gz chromium_src-3648b96e78d0a10a6ed5b4e629915fa884cf4d0f.tar.bz2 |
Commented out precision from shaders. These examples were done on my new desktop with latest nvidia drivers which does not complain about precision. But it does not compile on most other drivers.
Review URL: http://codereview.chromium.org/551057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/gles2_book')
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" |