summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 16:24:14 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 16:24:14 +0000
commit2289c29f0bdb08738db7da0b09768985692ea647 (patch)
treea1a00ac5665581e7ad5505708a93d6f413ab8b7c /third_party
parent528211a4c55cec0d9ef0bc22d7cd7fc9e3138f57 (diff)
downloadchromium_src-2289c29f0bdb08738db7da0b09768985692ea647.zip
chromium_src-2289c29f0bdb08738db7da0b09768985692ea647.tar.gz
chromium_src-2289c29f0bdb08738db7da0b09768985692ea647.tar.bz2
SwapBuffer is now synchronous. No need for glFlush.
Review URL: http://codereview.chromium.org/536053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36241 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/gles2_book/Chapter_2/Hello_Triangle/Hello_Triangle.c4
-rw-r--r--third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c3
2 files changed, 0 insertions, 7 deletions
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 6021f687..3094c14 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
@@ -82,10 +82,6 @@ void htDraw ( ESContext *esContext )
glVertexAttribPointer ( 0, 3, GL_FLOAT, GL_FALSE, 0, 0 );
glDrawArrays ( GL_TRIANGLES, 0, 3 );
-
- // Nothing is drawn or application crashes without glFlush.
- // TODO(alokp): glFlush should not be necessary with SwapBuffers().
- glFlush();
}
///
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 8b9c217..90be08a 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
@@ -134,9 +134,6 @@ void svsDraw ( ESContext *esContext )
// Draw the cube
glDrawElements ( GL_TRIANGLES, userData->numIndices, GL_UNSIGNED_SHORT, 0 );
-
- // TODO(alokp): glFlush should not be necessary with SwapBuffers.
- glFlush();
}
///