WIP: Graphics Overhaul #2

Draft
naifb wants to merge 18 commits from buffer_update into main
Showing only changes of commit 2c4392a51e - Show all commits

View File

@ -72,10 +72,10 @@ class Buffer : public OpenGLObject {
if (_id) { if (_id) {
glBindBuffer(Target, _id); glBindBuffer(Target, _id);
} else { } else {
THROW(BufferError( WARN(BufferError(
Codes::INVALID_BUFFER, Codes::INVALID_BUFFER,
"w/ BufferType " + BufferTypes.at(Target) "w/ BufferType " + BufferTypes.at(Target)
)); ), 0xFE);
} }
} }
virtual void unbind() const override { glBindBuffer(Target, 0); } virtual void unbind() const override { glBindBuffer(Target, 0); }