Explorar el Código

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

creation failures.
legacy
Sam Hocevar sam hace 12 años
padre
commit
8894958f0e
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +1
    -1
      src/gpu/vertexbuffer.cpp
  2. +3
    -3
      src/gpu/vertexbuffer.h

+ 1
- 1
src/gpu/vertexbuffer.cpp Ver fichero

@@ -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 Ver fichero

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


Cargando…
Cancelar
Guardar