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

Unified Diff: third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c

Issue 2134006: Added EGL based GLContext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « media/media.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c
===================================================================
--- third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c (revision 49195)
+++ third_party/gles2_book/Chapter_8/Simple_VertexShader/Simple_VertexShader.c (working copy)
@@ -59,7 +59,7 @@
glBufferData ( GL_ARRAY_BUFFER, 3 * numVertices * sizeof(GLfloat),
vertices, GL_STATIC_DRAW );
glBindBuffer ( GL_ELEMENT_ARRAY_BUFFER, userData->vboIds[1] );
- glBufferData ( GL_ELEMENT_ARRAY_BUFFER, userData->numIndices * sizeof(GL_UNSIGNED_SHORT),
+ glBufferData ( GL_ELEMENT_ARRAY_BUFFER, userData->numIndices * sizeof(GLushort),
indices, GL_STATIC_DRAW );
if ( vertices != NULL ) free ( vertices );
if ( indices != NULL ) free ( indices );
« no previous file with comments | « media/media.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698