浏览代码

gpu: fix a stupid signed/unsigned inconsistency causing vertex declaration

creation failures.
legacy
Sam Hocevar sam 12 年前
父节点
当前提交
8894958f0e
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. +1
    -1
      src/gpu/vertexbuffer.cpp
  2. +3
    -3
      src/gpu/vertexbuffer.h

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

@@ -318,7 +318,7 @@ void VertexDeclaration::Initialize()
X, D3DDECLTYPE_SHORT2N, X, D3DDECLTYPE_SHORT4N, /* int16_t */
X, D3DDECLTYPE_USHORT2N, X, D3DDECLTYPE_USHORT4N, /* uint16_t */
X, X, X, X, /* int32_t */
X, X, X, X, /* int64_t */
X, X, X, X, /* uint32_t */
};
static D3DDECLUSAGE const ulut[] =
{


+ 3
- 3
src/gpu/vertexbuffer.h 查看文件

@@ -84,12 +84,12 @@ protected:
Typehalf, Typef16vec2, Typef16vec3, Typef16vec4,
Typefloat, Typevec2, Typevec3, Typevec4,
Typedouble, Typef64vec2, Typef64vec3, Typef64vec4,
Typeuint8_t, Typeu8vec2, Typeu8vec3, Typeu8vec4,
Typeint8_t, Typei8vec2, Typei8vec3, Typei8vec4,
Typeuint16_t, Typeu16vec2, Typeu16vec3, Typeu16vec4,
Typeuint8_t, Typeu8vec2, Typeu8vec3, Typeu8vec4,
Typeint16_t, Typei16vec2, Typei16vec3, Typei16vec4,
Typeuint32_t, Typeuvec2, Typeuvec3, Typeuvec4,
Typeuint16_t, Typeu16vec2, Typeu16vec3, Typeu16vec4,
Typeint32_t, Typeivec2, Typeivec3, Typeivec4,
Typeuint32_t, Typeuvec2, Typeuvec3, Typeuvec4,
};

#define LOL_TYPE(T) \


正在加载...
取消
保存