Browse Source

Readable depth-stencil Canvases with MSAA are not currently supported.

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
72c7602650
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/modules/graphics/opengl/Canvas.cpp

+ 3 - 0
src/modules/graphics/opengl/Canvas.cpp

@@ -171,6 +171,9 @@ Canvas::Canvas(const Settings &settings)
 	else
 		readable = !isPixelFormatDepthStencil(format);
 
+	if (readable && isPixelFormatDepthStencil(format) && settings.msaa > 1)
+		throw love::Exception("Readable depth/stencil Canvases with MSAA are not currently supported.");
+
 	initQuad();
 	loadVolatile();