dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
755 stars 299 forks source link

Fixed a crash caused by invalid glGetStringi return type #128

Closed mohsenheydari closed 4 years ago

mohsenheydari commented 7 years ago

Hello

I just found my application crashes while calling glGetStringi Seems .NET doesn't like to convert pointer type to string directly and it makes application crash silently

I created a simple fix similar to how glGetString works. Hope its useful to others as well.

dwmkerr commented 4 years ago

Spring cleaning now, thanks for this change am merging it in!