From 4a1d3a89ddb98a4a5f254b2f835ae6af6f33af68 Mon Sep 17 00:00:00 2001 From: Stanislav Vorobiov Date: Fri, 1 Nov 2013 17:14:08 +0400 Subject: [PATCH] YaGL: Fix attrib pointers Offset should always be 0 for attrib pointers Change-Id: I3e94d35a0e11aa4189c326aa9e3267dbd8fdbfc1 --- hw/yagl_apis/gles/yagl_host_gles_calls.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/hw/yagl_apis/gles/yagl_host_gles_calls.c b/hw/yagl_apis/gles/yagl_host_gles_calls.c index dac491659c..d674246df0 100644 --- a/hw/yagl_apis/gles/yagl_host_gles_calls.c +++ b/hw/yagl_apis/gles/yagl_host_gles_calls.c @@ -490,7 +490,7 @@ void yagl_host_glVertexAttribPointerData(GLuint indx, gles_api_ts->driver->VertexAttribPointer(indx, size, type, normalized, stride, - (const GLvoid*)(first * stride)); + NULL); gles_api_ts->driver->BindBuffer(GL_ARRAY_BUFFER, current_vbo); } @@ -517,8 +517,7 @@ void yagl_host_glVertexPointerData(GLint size, first, stride, data, data_count); - gles_api_ts->driver->VertexPointer(size, type, stride, - (const GLvoid*)(first * stride)); + gles_api_ts->driver->VertexPointer(size, type, stride, NULL); gles_api_ts->driver->BindBuffer(GL_ARRAY_BUFFER, current_vbo); } @@ -540,8 +539,7 @@ void yagl_host_glNormalPointerData(GLenum type, first, stride, data, data_count); - gles_api_ts->driver->NormalPointer(type, stride, - (const GLvoid*)(first * stride)); + gles_api_ts->driver->NormalPointer(type, stride, NULL); gles_api_ts->driver->BindBuffer(GL_ARRAY_BUFFER, current_vbo); } @@ -563,8 +561,7 @@ void yagl_host_glColorPointerData(GLint size, first, stride, data, data_count); - gles_api_ts->driver->ColorPointer(size, type, stride, - (const GLvoid*)(first * stride)); + gles_api_ts->driver->ColorPointer(size, type, stride, NULL); gles_api_ts->driver->BindBuffer(GL_ARRAY_BUFFER, current_vbo); } @@ -588,8 +585,7 @@ void yagl_host_glTexCoordPointerData(GLint tex_id, first, stride, data, data_count); - gles_api_ts->driver->TexCoordPointer(size, type, stride, - (const GLvoid*)(first * stride)); + gles_api_ts->driver->TexCoordPointer(size, type, stride, NULL); gles_api_ts->driver->BindBuffer(GL_ARRAY_BUFFER, current_vbo); } -- 2.34.1