Use GLint from client state parameters in glGetBooleanv

Bug: 186021150

Some values (like gl stencil ones) might end with zero bits making the cast to boolean count as
zero.

Test: dEQP-GLES3.functional.state_query* regressions fixed
Change-Id: Iaab1dc8af0f3965fa39421de14b906d62bb5fcc7
1 file changed