Hi, You can use glColor3ub instead. Or simply compute the float color as (float)ubyte_color / 255.0f.