Potential fix for #3132

Add a test to see if the arb texture compression is defined before querying the number of compressed texture formats to try and avoid #3132