You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the actual C level functions to get_proc_address accept *const c_char, not &str.
In the current implementation, a user has to pass &str, then the library converts that to a CString, and then uses the pointer to that to perform the actual OS call.
Since the GL function names are stored as const values in the loader, the loader can just add the '\0' and then pass a *const c_char directly, and avoid doing an extra allocation per function load.
So a way to directly pass a *const c_char directly should be added. eg: get_proc_address_raw
The text was updated successfully, but these errors were encountered:
All the actual C level functions to
get_proc_address
accept*const c_char
, not&str
.In the current implementation, a user has to pass
&str
, then the library converts that to aCString
, and then uses the pointer to that to perform the actual OS call.Since the GL function names are stored as const values in the loader, the loader can just add the
'\0'
and then pass a*const c_char
directly, and avoid doing an extra allocation per function load.So a way to directly pass a
*const c_char
directly should be added. eg:get_proc_address_raw
The text was updated successfully, but these errors were encountered: