aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp')
-rw-r--r--emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp b/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp
index 882d95b75..8e35978a6 100644
--- a/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp
+++ b/emulator/opengl/host/libs/Translator/GLcommon/GLESvalidate.cpp
@@ -78,6 +78,16 @@ bool GLESvalidate::bufferTarget(GLenum target) {
return target == GL_ARRAY_BUFFER || target == GL_ELEMENT_ARRAY_BUFFER;
}
+bool GLESvalidate::bufferUsage(GLenum usage) {
+ switch(usage) {
+ case GL_STREAM_DRAW:
+ case GL_STATIC_DRAW:
+ case GL_DYNAMIC_DRAW:
+ return true;
+ }
+ return false;
+}
+
bool GLESvalidate::bufferParam(GLenum param) {
return (param == GL_BUFFER_SIZE) || (param == GL_BUFFER_USAGE);
}