diff --git a/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp b/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp index 47d42f85..2f6d45d8 100644 --- a/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp +++ b/MG/MG_GL/Implementations/GL/Texture/GL_Texture.cpp @@ -126,7 +126,9 @@ namespace MG_GL::GL { case GL_REPEAT: return Diligent::TEXTURE_ADDRESS_WRAP; case GL_CLAMP_TO_EDGE: return Diligent::TEXTURE_ADDRESS_CLAMP; case GL_MIRRORED_REPEAT: return Diligent::TEXTURE_ADDRESS_MIRROR; - default: return Diligent::TEXTURE_ADDRESS_WRAP; + default: + MG_Util::Debug::LogE("%s: not handled param: %s", __func__, MG_Util::Debug::GLEnumToString(param)); + return Diligent::TEXTURE_ADDRESS_WRAP; } } @@ -440,7 +442,7 @@ namespace MG_GL::GL { SamDesc.ComparisonFunc = ConvertComparsionFunc(param); break; default: - MG_Util::Debug::LogE("%s: not handled param: %s", __func__, MG_Util::Debug::GLEnumToString(param)); + MG_Util::Debug::LogE("%s: not handled pname: %s", __func__, MG_Util::Debug::GLEnumToString(pname)); } Diligent::ISampler* pNewSampler = nullptr; @@ -516,7 +518,7 @@ namespace MG_GL::GL { SamDesc.ComparisonFunc = ConvertComparsionFunc(param); break; default: - MG_Util::Debug::LogE("%s: not handled param: %s", __func__, MG_Util::Debug::GLEnumToString(param)); + MG_Util::Debug::LogE("%s: not handled pname: %s", __func__, MG_Util::Debug::GLEnumToString(pname)); } Diligent::ISampler* pNewSampler = nullptr; diff --git a/MG/MG_GL/State/Common/CommonState.cpp b/MG/MG_GL/State/Common/CommonState.cpp index 915d57c0..26b214ee 100644 --- a/MG/MG_GL/State/Common/CommonState.cpp +++ b/MG/MG_GL/State/Common/CommonState.cpp @@ -137,6 +137,7 @@ GLenum CommonState::DepthFunc(GLenum func) { return GL_INVALID_ENUM; } depthFunc = func; + MG_Util::Debug::LogD("%s(%s)", __func__, MG_Util::Debug::GLEnumToString(func)); return GL_NO_ERROR; }