diff options
author | Lukas Steiblys <imbusy@imbusy.org> | 2010-11-25 20:36:03 +0300 |
---|---|---|
committer | Lukas Steiblys <imbusy@imbusy.org> | 2010-11-25 20:36:03 +0300 |
commit | b9b9ac75bc0f7b10019b1c2bb9c948e5c51686f8 (patch) | |
tree | d10d58b16faea9a41a55b544b80c5044f6761876 /source/blender/gpu/intern/gpu_buffers.c | |
parent | dd8a55b23f4bb4a5ad291d0b5b82ca141bf86409 (diff) |
fix for https://projects.blender.org/tracker/index.php?func=detail&aid=24442&group_id=9&atid=498
[#24442] GLSL + VBOs
Diffstat (limited to 'source/blender/gpu/intern/gpu_buffers.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 129ba188e5f..00644eb02f7 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -1496,7 +1496,7 @@ void GPU_interleaved_attrib_setup( GPUBuffer *buffer, GPUAttrib data[], int numd glBindBufferARB( GL_ARRAY_BUFFER_ARB, buffer->id ); for( i = 0; i < numdata; i++ ) { glEnableVertexAttribArrayARB( data[i].index ); - glVertexAttribPointerARB( data[i].index, data[i].size, data[i].type, GL_TRUE, elementsize, (void *)offset ); + glVertexAttribPointerARB( data[i].index, data[i].size, data[i].type, GL_FALSE, elementsize, (void *)offset ); offset += data[i].size*GPU_typesize(data[i].type); attribData[i].index = data[i].index; @@ -1508,7 +1508,7 @@ void GPU_interleaved_attrib_setup( GPUBuffer *buffer, GPUAttrib data[], int numd else { for( i = 0; i < numdata; i++ ) { glEnableVertexAttribArrayARB( data[i].index ); - glVertexAttribPointerARB( data[i].index, data[i].size, data[i].type, GL_TRUE, elementsize, (char *)buffer->pointer + offset ); + glVertexAttribPointerARB( data[i].index, data[i].size, data[i].type, GL_FALSE, elementsize, (char *)buffer->pointer + offset ); offset += data[i].size*GPU_typesize(data[i].type); } } |