lp3dd->GetGammaRamp(&MyRamp)
When I try to replace the current gamma ramp with MyRamp, by doing this:
lp3dd->SetGammaRamp(D3DSGR_CALIBRATE, &MyRamp);
The screen blacks out. The only time I modify MyRamp is when I call GetGammaRamp. What could I be doing wrong?