summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-01-08 15:19:07 -0800
committerLaura Ekstrand <laura@jlekstrand.net>2015-03-09 16:20:42 -0700
commit722d158d978f4a5dca5800867162f00fcf158dfb (patch)
tree58be5bffeef76b6941edb703e08d93ee5b04776e
parentd15549bddecdbb7530a0d6cd41f1f356c04d3d6a (diff)
arb_direct_state_access: Testing glCreateBuffers.
-rw-r--r--tests/spec/arb_direct_state_access/getcompressedtextureimage.c2
-rw-r--r--tests/spec/arb_direct_state_access/texture-buffer-range.c2
-rw-r--r--tests/spec/arb_direct_state_access/texture-buffer.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/spec/arb_direct_state_access/getcompressedtextureimage.c b/tests/spec/arb_direct_state_access/getcompressedtextureimage.c
index 84aa30bf3..7a58491a5 100644
--- a/tests/spec/arb_direct_state_access/getcompressedtextureimage.c
+++ b/tests/spec/arb_direct_state_access/getcompressedtextureimage.c
@@ -224,7 +224,7 @@ getTexImage(bool doPBO, GLenum target, GLubyte *data,
/* Setup the PBO or data array to read into from
* glGetCompressedTextureImage */
if (doPBO) {
- glGenBuffers(1, &packPBO);
+ glCreateBuffers(1, &packPBO);
glBindBuffer(GL_PIXEL_PACK_BUFFER, packPBO);
/* Make the buffer big enough to hold uncompressed data. */
glBufferData(GL_PIXEL_PACK_BUFFER, layer_size * num_faces *
diff --git a/tests/spec/arb_direct_state_access/texture-buffer-range.c b/tests/spec/arb_direct_state_access/texture-buffer-range.c
index 859000eb0..49c835abe 100644
--- a/tests/spec/arb_direct_state_access/texture-buffer-range.c
+++ b/tests/spec/arb_direct_state_access/texture-buffer-range.c
@@ -135,7 +135,7 @@ piglit_init(int argc, char **argv) {
glGenVertexArrays(1, &vao);
glBindVertexArray(vao);
- glGenBuffers(1, &tbo);
+ glCreateBuffers(1, &tbo);
glBindBuffer(GL_ARRAY_BUFFER, tbo);
glBufferData(GL_ARRAY_BUFFER, sizeof(data), data, GL_STATIC_DRAW);
diff --git a/tests/spec/arb_direct_state_access/texture-buffer.c b/tests/spec/arb_direct_state_access/texture-buffer.c
index 1246071eb..47f694fae 100644
--- a/tests/spec/arb_direct_state_access/texture-buffer.c
+++ b/tests/spec/arb_direct_state_access/texture-buffer.c
@@ -70,7 +70,7 @@ piglit_display(void)
prog = piglit_build_simple_program(vs_source, fs_source);
glUseProgram(prog);
- glGenBuffers(1, &bo);
+ glCreateBuffers(1, &bo);
glBindBuffer(GL_TEXTURE_BUFFER, bo);
glBufferData(GL_TEXTURE_BUFFER, sizeof(g_rgba8), g_rgba8,
GL_STREAM_DRAW);