diff --git a/tests/spec/arb_texture_buffer_object/max-size.c b/tests/spec/arb_texture_buffer_object/max-size.c index b94d2d094..73ec6d203 100644 --- a/tests/spec/arb_texture_buffer_object/max-size.c +++ b/tests/spec/arb_texture_buffer_object/max-size.c @@ -98,11 +98,13 @@ piglit_init(int argc, char **argv) "testing with size 512M-1\n"); max = 512 * 1024 * 1024 - 1; } - + max += 1000; glTexBuffer(GL_TEXTURE_BUFFER, GL_RGBA8, tbo); glBufferData(GL_TEXTURE_BUFFER, max * sizeof(data), NULL, GL_STATIC_READ); err = glGetError(); + printf("Error code: %d\n", err); + printf("MAX_TEXTURE_BUFFER_SIZE: %d\n", max); if (err == GL_OUT_OF_MEMORY) { printf("couldn't allocate buffer due to OOM, skipping.\n"); piglit_report_result(PIGLIT_SKIP);