GregMiscellaneous: zzogl-pg:

* Fix a regression of my commit r3965 (missing draw in god of war)


git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3989 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2010-10-31 14:19:46 +00:00
parent 447d0e72b4
commit 3a7aca738e
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ void __gifCall GIFPackedRegHandlerXYZF2(const u32* data)
GIFPackedXYZF2* r = (GIFPackedXYZF2*)(data); GIFPackedXYZF2* r = (GIFPackedXYZF2*)(data);
gs.add_vertex(r->X, r->Y,r->Z, r->F); gs.add_vertex(r->X, r->Y,r->Z, r->F);
ZZKick->KickVertex(!!(data[3]>>31)); ZZKick->KickVertex(!!(data[3]>>15));
} }
void __gifCall GIFPackedRegHandlerXYZ2(const u32* data) void __gifCall GIFPackedRegHandlerXYZ2(const u32* data)
@ -102,7 +102,7 @@ void __gifCall GIFPackedRegHandlerXYZ2(const u32* data)
GIFPackedXYZ2* r = (GIFPackedXYZ2*)(data); GIFPackedXYZ2* r = (GIFPackedXYZ2*)(data);
gs.add_vertex(r->X, r->Y,r->Z); gs.add_vertex(r->X, r->Y,r->Z);
ZZKick->KickVertex(!!(data[3]>>31)); ZZKick->KickVertex(!!(data[3]>>15));
} }
void __gifCall GIFPackedRegHandlerFOG(const u32* data) void __gifCall GIFPackedRegHandlerFOG(const u32* data)

View File

@ -86,7 +86,7 @@ class VB
// Increase the size of pbuf // Increase the size of pbuf
void IncreaseVertexBuffer() void IncreaseVertexBuffer()
{ {
assert(pBufferData != NULL && nCount > nNumVertices); assert(pBufferData != NULL);
nNumVertices *= 2; nNumVertices *= 2;
VertexGPU* ptemp = (VertexGPU*)_aligned_malloc(sizeof(VertexGPU) * nNumVertices, 256); VertexGPU* ptemp = (VertexGPU*)_aligned_malloc(sizeof(VertexGPU) * nNumVertices, 256);
memcpy_amd(ptemp, pBufferData, sizeof(VertexGPU) * nCount); memcpy_amd(ptemp, pBufferData, sizeof(VertexGPU) * nCount);