mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibGL: Add some tests for the buffer API
This commit is contained in:
parent
b83181ef93
commit
bad3e2a089
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/cflip
Commit: bad3e2a089
Pull-request: https://github.com/SerenityOS/serenity/pull/16061
Reviewed-by: https://github.com/gmta ✅
3 changed files with 38 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue