From be4678637f77a4bbfb6709bb370f9a1ea7692eea Mon Sep 17 00:00:00 2001 From: hyzboy Date: Fri, 7 Dec 2018 19:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/DirectGLRender/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/DirectGLRender/main.cpp b/example/DirectGLRender/main.cpp index 790091e5..3a696402 100644 --- a/example/DirectGLRender/main.cpp +++ b/example/DirectGLRender/main.cpp @@ -81,8 +81,8 @@ void InitVertexBuffer() va=new VertexArray(GL_TRIANGLES, //画三角形 2); //两个属性 - const int vertex_location=shader.GetAttribLocation("Vertex"); ///<取得顶点流数据输入流对应的shader地址 - const int color_location=shader.GetAttribLocation("Color"); ///<取得颜色流数据输入流对应的shader地址 + const int vertex_location=shader.GetAttribLocation("Vertex"); ///<取得顶点数据输入流对应的shader地址 + const int color_location=shader.GetAttribLocation("Color"); ///<取得颜色数据输入流对应的shader地址 int binding_index=0; //绑定点