[Piglit] [PATCH] arb_texture_view-texsubimage-levels: correct buffer size
Bartosz Tomczyk
bartosz.tomczyk86 at gmail.com
Tue Jan 31 09:45:51 UTC 2017
---
tests/spec/arb_texture_view/texsubimage-levels.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/spec/arb_texture_view/texsubimage-levels.c b/tests/spec/arb_texture_view/texsubimage-levels.c
index 20d956fa2..7bbaf7f8b 100644
--- a/tests/spec/arb_texture_view/texsubimage-levels.c
+++ b/tests/spec/arb_texture_view/texsubimage-levels.c
@@ -89,7 +89,7 @@ piglit_init(int argc, char **argv)
}
if (use_pbo) {
- glBufferData(GL_PIXEL_UNPACK_BUFFER, TEX_SIZE * TEX_SIZE * 4,
+ glBufferData(GL_PIXEL_UNPACK_BUFFER, dim * dim * 4,
pixels, GL_STREAM_DRAW);
}
glTexSubImage2D(GL_TEXTURE_2D,
@@ -118,7 +118,7 @@ piglit_init(int argc, char **argv)
}
if (use_pbo) {
- glBufferData(GL_PIXEL_UNPACK_BUFFER, TEX_SIZE * TEX_SIZE * 4,
+ glBufferData(GL_PIXEL_UNPACK_BUFFER, dim * dim * 4,
pixels, GL_STREAM_DRAW);
}
glTexSubImage2D(GL_TEXTURE_2D, i, 0, 0, dim, dim,
--
2.11.0
More information about the Piglit
mailing list