mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 13:48:30 +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_REPEAT: return Diligent::TEXTURE_ADDRESS_WRAP;
|
||||||
case GL_CLAMP_TO_EDGE: return Diligent::TEXTURE_ADDRESS_CLAMP;
|
case GL_CLAMP_TO_EDGE: return Diligent::TEXTURE_ADDRESS_CLAMP;
|
||||||
case GL_MIRRORED_REPEAT: return Diligent::TEXTURE_ADDRESS_MIRROR;
|
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);
|
SamDesc.ComparisonFunc = ConvertComparsionFunc(param);
|
||||||
break;
|
break;
|
||||||
default:
|
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;
|
Diligent::ISampler* pNewSampler = nullptr;
|
||||||
@@ -516,7 +518,7 @@ namespace MG_GL::GL {
|
|||||||
SamDesc.ComparisonFunc = ConvertComparsionFunc(param);
|
SamDesc.ComparisonFunc = ConvertComparsionFunc(param);
|
||||||
break;
|
break;
|
||||||
default:
|
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;
|
Diligent::ISampler* pNewSampler = nullptr;
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ GLenum CommonState::DepthFunc(GLenum func) {
|
|||||||
return GL_INVALID_ENUM;
|
return GL_INVALID_ENUM;
|
||||||
}
|
}
|
||||||
depthFunc = func;
|
depthFunc = func;
|
||||||
|
MG_Util::Debug::LogD("%s(%s)", __func__, MG_Util::Debug::GLEnumToString(func));
|
||||||
return GL_NO_ERROR;
|
return GL_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user