mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
metal: fix a crash on quit
This commit is contained in:
@@ -208,6 +208,8 @@ private:
|
||||
void initCapabilities() override;
|
||||
void getAPIStats(int &shaderswitches) const override;
|
||||
|
||||
void processCompletedCommandBuffers();
|
||||
|
||||
void endPass(bool presenting);
|
||||
|
||||
id<MTLDepthStencilState> getCachedDepthStencilState(const DepthState &depth, const StencilState &stencil);
|
||||
@@ -251,7 +253,7 @@ private:
|
||||
std::map<uint64, void *> cachedSamplers;
|
||||
std::unordered_map<uint64, void *> cachedDepthStencilStates;
|
||||
|
||||
std::atomic<int64> completeCommandBufferIndex;
|
||||
std::vector<id<MTLCommandBuffer>> activeCommandBuffers;
|
||||
|
||||
DeviceFamilies families;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user