Avoid calling truncate with a invalid size if result_len is 0
Add binding for glGetString
Merge pull request #22 from csherratt/master

sanity check in get_shader_info_log
Merge pull request #23 from csherratt/master

Add bindings for glGetString
Merge pull request #24 from Jeaye/master

Added vertex array gen/binding and glPolygonMode
update for language changes
Merge pull request #26 from yichoi/pull-transmute

update for language changes
transmute fix
Merge pull request #27 from yichoi/pull-transmute-fix

transmute fix
Fix build problem on Snow Leopard
Merge pull request #28 from pcwalton/snow-leopard

Fix build problem on Snow Leopard