Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Marshal strings as UTF8 (affects #18)
Starting with OpenGL 4.2, strings passed to GL.ShaderSource are allowed to contain multi-byte characters in comments (issue #18). This patch modifies the marshaling code to use UTF8.GetBytes in order to marshal strings, instead of Marshal.StringToHGlobalAnsi().
- Loading branch information
1 parent
0c99058
commit fd0c086
Showing
2 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters