st/mesa: don't clobber glGetInternalformat* buffer for GL_NUM_SAMPLE_COUNTS
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:46 +0000 (13:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:46 +0000 (13:58 +0200)
commit9a8f13a33b2d08b34c78de67ce90e0198bfdf0b3
treeef3d3ba5bf544994a8679cac381d8279182160fd
parent1b592d30c51696eeeadca7a55b603c543dfdc3cf
st/mesa: don't clobber glGetInternalformat* buffer for GL_NUM_SAMPLE_COUNTS

Applications might pass in a buffer that is sized too large and rely
on the extra space of the buffer not being overwritten.

Fixes dEQP-GLES31.functional.state_query.internal_format.partial_query.num_sample_counts

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_format.c