Ver código fonte

ps3: support for texture coordinates on the PS3.

legacy
Sam Hocevar sam 13 anos atrás
pai
commit
004d21a4c4
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      src/gpu/vertexbuffer.cpp

+ 4
- 0
src/gpu/vertexbuffer.cpp Ver arquivo

@@ -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);


Carregando…
Cancelar
Salvar