mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-08 18:16:12 +00:00
[spline/bezier]Fix the remains of differences between dx9 and opengl.
This commit is contained in:
parent
a346b70341
commit
51afbdd490
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -205,7 +205,7 @@ private:
|
||||
u32 vertType;
|
||||
u8 indexType;
|
||||
s8 prim;
|
||||
u16 vertexCount;
|
||||
u32 vertexCount;
|
||||
u16 indexLowerBound;
|
||||
u16 indexUpperBound;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user