Fix the stencil buffer in Canvases when the graphics driver uses a MSAA value for the Canvas' buffers that's greater than the number of requested MSAA samples.

Fixes https://love2d.org/forums/viewtopic.php?f=4&t=79701
This commit is contained in:
Alex Szpakowski
2015-02-21 01:56:17 -04:00
parent 672899f5c7
commit 813061c0e0
2 changed files with 31 additions and 29 deletions
+3 -2
View File
@@ -111,7 +111,7 @@ public:
inline int getMSAA() const
{
return msaa_samples;
return actual_samples;
}
bool resolveMSAA();
@@ -155,7 +155,8 @@ private:
std::vector<Canvas *> attachedCanvases;
int msaa_samples;
int requested_samples;
int actual_samples;
bool msaa_dirty;
size_t texture_memory;