mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-04 14:37:17 +00:00
Headless: Fix crash with null GPU.
This commit is contained in:
parent
c12f17134b
commit
8ccf32af47
@ -15,7 +15,7 @@
|
||||
// Official git repository and contact information can be found at
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
|
||||
#include "GPU/Common/DrawEngineCommon.h"
|
||||
#include "GPU/Null/NullGpu.h"
|
||||
#include "GPU/GPUState.h"
|
||||
#include "GPU/ge_constants.h"
|
||||
@ -25,7 +25,17 @@
|
||||
#include "Core/HLE/sceKernelInterrupt.h"
|
||||
#include "Core/HLE/sceGe.h"
|
||||
|
||||
NullGPU::NullGPU() : GPUCommon(nullptr, nullptr) { }
|
||||
class NullDrawEngine : public DrawEngineCommon {
|
||||
public:
|
||||
void DispatchFlush() override {
|
||||
}
|
||||
void DispatchSubmitPrim(void *verts, void *inds, GEPrimitiveType prim, int vertexCount, u32 vertType, int *bytesRead) override {
|
||||
}
|
||||
};
|
||||
|
||||
NullGPU::NullGPU() : GPUCommon(nullptr, nullptr) {
|
||||
drawEngineCommon_ = new NullDrawEngine();
|
||||
}
|
||||
NullGPU::~NullGPU() { }
|
||||
|
||||
void NullGPU::FastRunLoop(DisplayList &list) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user