Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c

Issue 551057: Commented out precision from shaders. These examples were done on my new desk... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c
===================================================================
--- third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c (revision 36460)
+++ third_party/gles2_book/Chapter_9/Simple_Texture2D/Simple_Texture2D.c (working copy)
@@ -71,8 +71,9 @@
" 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"

Powered by Google App Engine
This is Rietveld 408576698