Added ConstCharPointer->string transformation in accordance to GL 4.3

specs.
This commit is contained in:
Stefanos A. 2013-10-21 21:43:05 +02:00
parent 98504ce67a
commit 61fd8d6122

View file

@ -238,7 +238,8 @@ namespace Bind
// "(Const)VoidPointer" -> "void*"
GLTypes.Add(words[0], "void*");
}
else if (words[0] == "CharPointer" || words[0] == "charPointerARB")
else if (words[0] == "CharPointer" || words[0] == "charPointerARB" ||
words[0] == "ConstCharPointer")
{
// The typematching logic cannot handle pointers to pointers, e.g. CharPointer* -> char** -> string* -> string[].
// Hence we give it a push.