a bunch of junk, merging 'shitty' branch

This commit is contained in:
2025-05-06 16:20:18 +08:00
parent 31d2d62a59
commit c68cbfa37b
14 changed files with 797 additions and 10 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,8 +41,9 @@ GLenum VertexArrayState::CreateN(GLsizei n, GLuint* arrays) {
}
GLenum VertexArrayState::Bind(GLuint array) {
if (array != 0 && !vaos_.count(array)) return GL_INVALID_OPERATION;
if (array != 0 && vaos_.find(array) == vaos_.end()) return GL_INVALID_OPERATION;
currentVao_ = array;
GetCurrentVAO()->generated = true;
return GL_NO_ERROR;
}