[spline/bezier]Fix the remains of differences between dx9 and opengl.

This commit is contained in:
xebra 2014-12-16 22:27:45 +09:00
parent a346b70341
commit 51afbdd490
4 changed files with 6 additions and 6 deletions

View File

@ -799,7 +799,7 @@ void DIRECTX9_GPU::Execute_Bezier(u32 op, u32 diff) {
indices = Memory::GetPointerUnchecked(gstate_c.indexAddr);
}
if (gstate.getPatchPrimitiveType() != GE_PATCHPRIM_TRIANGLES) {
if (gstate.getPatchPrimitiveType() == GE_PATCHPRIM_UNKNOWN) {
ERROR_LOG_REPORT(G3D, "Unsupported patch primitive %x", gstate.getPatchPrimitiveType());
return;
}
@ -840,7 +840,7 @@ void DIRECTX9_GPU::Execute_Spline(u32 op, u32 diff) {
indices = Memory::GetPointerUnchecked(gstate_c.indexAddr);
}
if (gstate.getPatchPrimitiveType() != GE_PATCHPRIM_TRIANGLES) {
if (gstate.getPatchPrimitiveType() == GE_PATCHPRIM_UNKNOWN) {
ERROR_LOG_REPORT(G3D, "Unsupported patch primitive %x", gstate.getPatchPrimitiveType());
return;
}

View File

@ -67,7 +67,7 @@ void TransformDrawEngineDX9::SubmitSpline(const void *control_points, const void
points[idx] = simplified_control_points + idx;
}
u8 *decoded2 = decoded + 65536 * 36;
u8 *decoded2 = decoded + 65536 * 18;
int count = 0;
u8 *dest = decoded2;
@ -154,7 +154,7 @@ void TransformDrawEngineDX9::SubmitBezier(const void *control_points, const void
}
}
u8 *decoded2 = decoded + 65536 * 36;
u8 *decoded2 = decoded + 65536 * 18;
int count = 0;
u8 *dest = decoded2;

View File

@ -77,7 +77,7 @@ enum {
TRANSFORMED_VERTEX_BUFFER_SIZE = VERTEX_BUFFER_MAX * sizeof(TransformedVertex)
};
#define QUAD_INDICES_MAX 32768
#define QUAD_INDICES_MAX 65536
#define VERTEXCACHE_DECIMATION_INTERVAL 17

View File

@ -205,7 +205,7 @@ private:
u32 vertType;
u8 indexType;
s8 prim;
u16 vertexCount;
u32 vertexCount;
u16 indexLowerBound;
u16 indexUpperBound;
};