Question About OpenGL and NVIDIA Driver Interactivity

Hello,

I’m currently working on a project, and I was curious about how the graphics driver, specifically on NVIDIA drivers, interacts with commands sent to it via OpenGL.

For example, let’s say I want to draw a box in the center of the screen, and specify its color to be fully red. How does the driver interpret this command? Does it actually request the display to color it at the maximum red value it can display? Or does it perform some sort of correction or compensation to request a red value that most displays can achieve? In other words, at the lowest level, how does the driver tell the display to draw a primitive with a certain color? Does the driver do anything to manipulate the data? How does the operating system or OpenGL factor into this? What if I request a different color, like white?

Many thanks,

Noah