Upgrade Utility

This commit is contained in:
Jérôme Leclercq
2021-05-24 19:10:53 +02:00
parent b936946154
commit cce32a64d4
120 changed files with 2328 additions and 2971 deletions

View File

@@ -30,12 +30,12 @@ namespace Nz
GLenum attachment;
switch (PixelFormatInfo::GetContent(textureFormat))
{
case PixelFormatContent_ColorRGBA:
case PixelFormatContent::ColorRGBA:
attachment = static_cast<GLenum>(GL_COLOR_ATTACHMENT0 + colorAttachmentCount);
colorAttachmentCount++;
break;
case PixelFormatContent_Depth:
case PixelFormatContent::Depth:
if (hasDepth)
throw std::runtime_error("a framebuffer can only have one depth attachment");
@@ -43,7 +43,7 @@ namespace Nz
hasDepth = true;
break;
case PixelFormatContent_DepthStencil:
case PixelFormatContent::DepthStencil:
if (hasDepth)
throw std::runtime_error("a framebuffer can only have one depth attachment");
@@ -55,7 +55,7 @@ namespace Nz
hasStencil = true;
break;
case PixelFormatContent_Stencil:
case PixelFormatContent::Stencil:
if (hasStencil)
throw std::runtime_error("a framebuffer can only have one stencil attachment");
@@ -63,7 +63,7 @@ namespace Nz
hasStencil = true;
break;
case PixelFormatContent_Undefined:
case PixelFormatContent::Undefined:
default:
throw std::runtime_error("unhandled pixel format " + PixelFormatInfo::GetName(textureFormat));
}