opentk/opentk — pull request #132 by thefiddler (2014-06-08 08:01:25+00:00)
Title:  Fix bool return types

`System.Boolean` is marshaled as a 4-byte int by default, but GLboolean is typedefed as a 1-byte unsigned char. Calli instructions do not appear to respect `[return: MarshalAs(UnmanagedType.U1)]`, so we need to handle this ourselves by emitting byte instead of bool on the p/invoke signatures.

Fixes issue #129