metal: fix automatic depth/stencil with setCanvas.

This commit is contained in:
Alex Szpakowski
2022-01-22 20:57:06 -04:00
parent 8c496d60e5
commit 87592513a2
6 changed files with 18 additions and 13 deletions
+2 -1
View File
@@ -201,7 +201,7 @@ private:
love::graphics::ShaderStage *newShaderStageInternal(ShaderStageType stage, const std::string &cachekey, const std::string &source, bool gles) override;
love::graphics::Shader *newShaderInternal(StrongRef<love::graphics::ShaderStage> stages[SHADERSTAGE_MAX_ENUM]) override;
love::graphics::StreamBuffer *newStreamBuffer(BufferUsage usage, size_t size) override;
void setRenderTargetsInternal(const RenderTargets &rts, int w, int h, int pixelw, int pixelh, bool hasSRGBcanvas) override;
void setRenderTargetsInternal(const RenderTargets &rts, int pixelw, int pixelh, bool hasSRGBcanvas) override;
void initCapabilities() override;
void getAPIStats(int &shaderswitches) const override;
@@ -226,6 +226,7 @@ private:
uint32 dirtyRenderState;
CullMode lastCullMode;
VertexAttributes lastVertexAttributes;
PixelFormat activeDepthStencilFormat;
bool windowHasStencil;
int shaderSwitches;