Commit 01c90b0a authored by Vinson Lee's avatar Vinson Lee

util: Silence GCC unused-function warning.

piglit-util-gl.c:1941:1: warning: ‘read_texture_via_fbo’ defined but not used [-Wunused-function]
 read_texture_via_fbo(int target, int level, int x, int y, int layer, int w,
 ^~~~~~~~~~~~~~~~~~~~

Fixes: 77a4b734 ("util: provide way to read a texture in ES compatible way")
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
parent cde860ab
......@@ -1894,6 +1894,7 @@ piglit_probe_image_ubyte(int x, int y, int w, int h, GLenum format,
return 1;
}
#ifndef PIGLIT_USE_OPENGL
static GLuint
create_fbo_from_texture(GLenum target, GLint texture, GLint level, GLint layer)
{
......@@ -1995,6 +1996,7 @@ read_texture_via_fbo(int target, int level, int x, int y, int layer, int w,
return buffer;
}
#endif
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment