diff options
author | Laura Ekstrand <laura@jlekstrand.net> | 2015-01-08 15:19:07 -0800 |
---|---|---|
committer | Laura Ekstrand <laura@jlekstrand.net> | 2015-03-09 16:20:42 -0700 |
commit | 722d158d978f4a5dca5800867162f00fcf158dfb (patch) | |
tree | 58be5bffeef76b6941edb703e08d93ee5b04776e | |
parent | d15549bddecdbb7530a0d6cd41f1f356c04d3d6a (diff) |
arb_direct_state_access: Testing glCreateBuffers.
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); |