mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Misc] (Diligent/Texture): Log unhandled texture state
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user