瀏覽代碼

ps3: support for texture coordinates on the PS3.

legacy
Sam Hocevar sam 13 年之前
父節點
當前提交
004d21a4c4
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/gpu/vertexbuffer.cpp

+ 4
- 0
src/gpu/vertexbuffer.cpp 查看文件

@@ -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…
取消
儲存