Commit ec2a65b2 by Alexis Hetu Committed by Alexis Hétu

createDepthStencilSurface stencil fix

Stencil formats were prohibited from createDepthStencilSurface in debug builds due to an assert, so fixed the assert. Change-Id: I5777a081371be4f43810de4450b415c55f04a8d7 Reviewed-on: https://swiftshader-review.googlesource.com/16348Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 2e4c069a
...@@ -251,7 +251,7 @@ namespace es2 ...@@ -251,7 +251,7 @@ namespace es2
egl::Image *Device::createDepthStencilSurface(unsigned int width, unsigned int height, sw::Format format, int multiSampleDepth, bool discard) egl::Image *Device::createDepthStencilSurface(unsigned int width, unsigned int height, sw::Format format, int multiSampleDepth, bool discard)
{ {
ASSERT(sw::Surface::isDepth(format)); ASSERT(sw::Surface::isDepth(format) || sw::Surface::isStencil(format));
if(height > OUTLINE_RESOLUTION) if(height > OUTLINE_RESOLUTION)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment