Browse Source

ps3: support for texture coordinates on the PS3.

legacy
Sam Hocevar sam 12 years ago
parent
commit
004d21a4c4
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/gpu/vertexbuffer.cpp

+ 4
- 0
src/gpu/vertexbuffer.cpp View File

@@ -426,6 +426,10 @@ void VertexDeclaration::SetStream(VertexBuffer *vb, ShaderAttrib attr1,
glVertexPointer(tlut[type_index].size, tlut[type_index].type,
stride, (GLvoid const *)(uintptr_t)offset);
break;
case VertexUsage::TexCoord:
glTexCoordPointer(tlut[type_index].size, tlut[type_index].type,
stride, (GLvoid const *)(uintptr_t)offset);
break;
case VertexUsage::Normal:
glNormalPointer(tlut[type_index].type,
stride, (GLvoid const *)(uintptr_t)offset);


Loading…
Cancel
Save