google / node-gles

Apache License 2.0
323 stars 31 forks source link

Return boolean result from parameter queries #59

Closed rnconrad closed 5 years ago

rnconrad commented 5 years ago

Calls to getShaderParameter and getProgramParameter sometimes return a boolean (depending on the parameter). This change returns a boolean instead of an int for the appropriate parameters.

This way, strictly comparing the result with e.g. === false works.


This change is Reviewable