aboutsummaryrefslogtreecommitdiffstats
path: root/shared/OpenglCodecCommon/GLClientState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shared/OpenglCodecCommon/GLClientState.cpp')
-rw-r--r--shared/OpenglCodecCommon/GLClientState.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/OpenglCodecCommon/GLClientState.cpp b/shared/OpenglCodecCommon/GLClientState.cpp
index 039b7632..67758316 100644
--- a/shared/OpenglCodecCommon/GLClientState.cpp
+++ b/shared/OpenglCodecCommon/GLClientState.cpp
@@ -2406,6 +2406,13 @@ void GLClientState::validateUniform(bool isFloat, bool isUnsigned, GLint columns
}
}
+bool GLClientState::isAttribIndexUsedByProgram(int index) {
+ auto info = currentAttribValidationInfo.get_const(index);
+ if (!info) return false;
+ if (!info->validInProgram) return false;
+ return true;
+}
+
void GLClientState::addFreshFramebuffer(GLuint name) {
FboProps props;
props.name = name;