Revert "a bunch of junk, merging 'shitty' branch"

This reverts commit c68cbfa37b.
This commit is contained in:
BZLZHH
2025-05-17 11:13:31 +08:00
parent 9297542dcf
commit 3b1ab8d9d9
14 changed files with 10 additions and 797 deletions
@@ -19,7 +19,7 @@ GLenum VertexArrayState::Create(GLuint* array) {
}
*array = id;
// vaos_[id].generated = true;
vaos_[id].generated = true;
return GL_NO_ERROR;
}
@@ -41,9 +41,8 @@ GLenum VertexArrayState::CreateN(GLsizei n, GLuint* arrays) {
}
GLenum VertexArrayState::Bind(GLuint array) {
if (array != 0 && vaos_.find(array) == vaos_.end()) return GL_INVALID_OPERATION;
if (array != 0 && !vaos_.count(array)) return GL_INVALID_OPERATION;
currentVao_ = array;
GetCurrentVAO()->generated = true;
return GL_NO_ERROR;
}