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
Either I have completely misread your code, or vkel is (as useful as it is - thanks!) completely unusable in its current state:
As I see, in your code you use strcmp for the vkelIs[Whatever]Supported() methods, but you use it like so:
if (vkel_strcmp(extensionNames[extensionNameIndex], pExtensionName))
This always returns the opposite of what you want. strcmp returns 0 if the strings are equal and something else if they are not, this means you enter the if block (with anything other than 0) if the strings are not equal and you don't enter it if they are (if(0) doesn't enter!).
if (vkel_strcmp(extensionNames[extensionNameIndex], pExtensionName) == 0)
is what you want to use to get the correct behaviour.
The text was updated successfully, but these errors were encountered:
Either I have completely misread your code, or vkel is (as useful as it is - thanks!) completely unusable in its current state:
As I see, in your code you use strcmp for the
vkelIs[Whatever]Supported()
methods, but you use it like so:if (vkel_strcmp(extensionNames[extensionNameIndex], pExtensionName))
This always returns the opposite of what you want.
strcmp
returns0
if the strings are equal and something else if they are not, this means you enter the if block (with anything other than0
) if the strings are not equal and you don't enter it if they are (if(0)
doesn't enter!).is what you want to use to get the correct behaviour.
The text was updated successfully, but these errors were encountered: