mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 14:18:31 +09:00
Merge branch 'dev' into Feat/Backend-Direct-GLES
This commit is contained in:
@@ -473,7 +473,7 @@ namespace MobileGL {
|
||||
return;
|
||||
}
|
||||
|
||||
if (location >= programObject->GetUniformCount() || location < -1) {
|
||||
if (location > programObject->GetMaxUniformLocation() || location < -1) {
|
||||
MG_State::pGLContext->RecordError(
|
||||
ErrorCode::InvalidOperation,
|
||||
MakeShared<GenericErrorInfo>("MG_Impl/GLImpl", __func__,
|
||||
|
||||
Reference in New Issue
Block a user