arb_internalformat_query2: Move global variable definitions to common.c.
Compare changes
Files
2@@ -30,6 +30,9 @@ typedef void (APIENTRY *GetInternalformat)(GLenum target, GLenum internalformat,
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
This patch fixes these build errors with GCC 10.
/usr/bin/ld: CMakeFiles/arb_internalformat_query2-internalformat-size-checks.dir/common.c.o:tests/spec/arb_internalformat_query2/common.h:304: multiple definition of valid_internalformats'; CMakeFiles/arb_internalformat_query2-internalformat-size-checks.dir/internalformat-size-checks.c.o:tests/spec/arb_internalformat_query2/common.h:304: first defined here /usr/bin/ld: CMakeFiles/arb_internalformat_query2-internalformat-size-checks.dir/common.c.o:tests/spec/arb_internalformat_query2/common.h:305: multiple definition of
num_valid_internalformats'; CMakeFiles/arb_internalformat_query2-internalformat-size-checks.dir/internalformat-size-checks.c.o:tests/spec/arb_internalformat_query2/common.h:305: first defined here
Fixes: 1e60f149 ("arb_internalformat_query2: test new ARB_ES3_compatibility internalformats") Signed-off-by: Vinson Lee vlee@freedesktop.org