[4/5] khr_compressed_astc-miptree-array requires GL_ARB_ES3_compatibility

Submitted by Anuj Phogat on March 21, 2016, 6:54 p.m.

Details

Message ID 1458586453-1323-4-git-send-email-anuj.phogat@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Anuj Phogat March 21, 2016, 6:54 p.m.
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
---
 .../khr_compressed_astc-miptree-array.c                       | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c
index e332bad..2ee5626 100644
--- a/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c
+++ b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree-array.c
@@ -84,7 +84,7 @@  PIGLIT_GL_TEST_CONFIG_END
  */
 static void
 load_texture(const char *dir1, const char *dir2,
-	const char *filename, GLuint *tex_name)
+	     const char *filename, GLuint *tex_name)
 {
 	struct piglit_ktx *ktx;
 	const struct piglit_ktx_info *info;
@@ -119,10 +119,10 @@  load_texture(const char *dir1, const char *dir2,
 	piglit_ktx_destroy(ktx);
 }
 
-/** Compares the compresseed texture against the decompressed texture */
+/** Compares the compressed textures from two layers of an array texture. */
 bool draw_compare_levels(GLint index,
-			GLint level_pixel_size_loc, GLint pixel_offset_loc,
-			GLuint compressed_tex)
+			 GLint level_pixel_size_loc, GLint pixel_offset_loc,
+			 GLuint compressed_tex)
 {
 	unsigned y = 0;
 	unsigned x = 0;
@@ -263,6 +263,9 @@  piglit_init(int argc, char **argv)
 
 	piglit_require_extension("GL_KHR_texture_compression_astc_ldr");
 
+	if (!piglit_is_gles())
+		piglit_require_extension("GL_ARB_ES3_compatibility");
+
 	glClearColor(0.9098, 0.8314, 0.7843, 1.0);
 	glViewport(0, 0, piglit_width, piglit_height);