1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

LibGL: Add some tests for the buffer API

This commit is contained in:
cflip 2022-11-14 17:02:53 -07:00 committed by Andreas Kling
parent b83181ef93
commit bad3e2a089
3 changed files with 38 additions and 0 deletions

View file

@ -53,3 +53,11 @@ TEST_CASE(0002_gl_cull_face_does_not_accept_left_and_right)
glCullFace(GL_RIGHT);
EXPECT_EQ(glGetError(), static_cast<GLenum>(GL_INVALID_ENUM));
}
TEST_CASE(0003_gl_bind_buffer_names_must_be_allocated)
{
auto context = create_testing_context();
glBindBuffer(GL_ARRAY_BUFFER, 123);
EXPECT_EQ(glGetError(), static_cast<GLenum>(GL_INVALID_VALUE));
}