소스 검색

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

--HG--
branch : minor
Alex Szpakowski 8 년 전
부모
커밋
72c7602650
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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();