mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (MG_State/GL_Program): wrong guard condition in Uniformv_State
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