summaryrefslogtreecommitdiff
path: root/Tests/LibGL/TestAPI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibGL/TestAPI.cpp')
-rw-r--r--Tests/LibGL/TestAPI.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/LibGL/TestAPI.cpp b/Tests/LibGL/TestAPI.cpp
index b539c5db88..d5ec47631c 100644
--- a/Tests/LibGL/TestAPI.cpp
+++ b/Tests/LibGL/TestAPI.cpp
@@ -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));
+}