Fix DX9 bbox crash (DrawEngine::decoded wasn't initialized, because it also existed in the DX9 draw engine)

This commit is contained in:
Henrik Rydgard 2014-09-17 21:31:22 +02:00
parent 640e9d82d3
commit cef5f5be40
2 changed files with 3 additions and 5 deletions

View File

@ -886,7 +886,9 @@ void DIRECTX9_GPU::Execute_BoundingBox(u32 op, u32 diff) {
}
// Test if the bounding box is within the drawing region.
currentList->bboxResult = transformDraw_.TestBoundingBox(control_points, data, gstate.vertType);
if (control_points) {
currentList->bboxResult = transformDraw_.TestBoundingBox(control_points, data, gstate.vertType);
}
} else {
ERROR_LOG_REPORT_ONCE(boundingbox, G3D, "Bad bounding box data: %06x", data);
// Data seems invalid. Let's assume the box test passed.

View File

@ -193,10 +193,6 @@ private:
VertexDecoderJitCache *decJitCache_;
u32 lastVType_;
// Vertex collector buffers
u8 *decoded;
u16 *decIndex;
TransformedVertex *transformed;
TransformedVertex *transformedExpanded;