mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Fix] (MG_Util/Converters): properly handle GL_NONE in ConvertGLEnumToFramebufferAttachmentType
This commit is contained in:
@@ -30,13 +30,14 @@ namespace MobileGL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (attachment) {
|
switch (attachment) {
|
||||||
case GL_DEPTH_ATTACHMENT:
|
case GL_NONE:
|
||||||
return FramebufferAttachmentType::Depth;
|
return FramebufferAttachmentType::None;
|
||||||
case GL_STENCIL_ATTACHMENT:
|
case GL_DEPTH_ATTACHMENT:
|
||||||
return FramebufferAttachmentType::Stencil;
|
return FramebufferAttachmentType::Depth;
|
||||||
case GL_UNKNOWN_MGL:
|
case GL_STENCIL_ATTACHMENT:
|
||||||
default:
|
return FramebufferAttachmentType::Stencil;
|
||||||
return FramebufferAttachmentType::Unknown;
|
default:
|
||||||
|
return FramebufferAttachmentType::Unknown;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user