glx: Change type to eliminate 'comparison between signed and unsigned' warning