That’s the problem: I can’t find nvidia control panel anywhere. It’s not there if I right-click on the desktop. Do I need a different driver, or to install nvidia control panel?
I’m using double buffering. Here’s the windows initialization (simplified):
hinstance = GetModuleHandle(NULL);
windowrect.left = (long)0;
windowrect.right = (long)width;
windowrect.top = (long)0;
windowrect.bottom = (long)height;
WNDCLASS wc = {
CS_HREDRAW | CS_VREDRAW,
WndProc,
0,
0,
hinstance,
NULL,
LoadCursor(NULL, IDC_ARROW),
(HBRUSH)GetStockObject(BLACK_BRUSH),
NULL,
“classname”
};
gbrush = CreateSolidBrush(OGLBGCOLOR);
wc.hbrBackground = gbrush;
RegisterClass(&wc);
dwExStyle = WS_EX_APPWINDOW | WS_EX_WINDOWEDGE;
dwStyle = WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS | WS_CLIPCHILDREN;
AdjustWindowRectEx(&windowrect, dwStyle, FALSE, dwExStyle);
hwnd = CreateWindowEx(
dwExStyle,
OGLCLASS,
title,
dwStyle,
x, y,
windowrect.right-windowrect.left,
windowrect.bottom-windowrect.top,
NULL,
0L,
hinstance,
0L);
SetWindowLong (hwnd, GWL_USERDATA, (long)this);
hdc = GetDC(hwnd);
planes = GetDeviceCaps(hdc,PLANES); // 1
bits = GetDeviceCaps(hdc, BITSPIXEL); // 32
GetClientRect(hwnd, &clientrect);
pfd.nSize = sizeof(PIXELFORMATDESCRIPTOR);
pfd.nVersion = 1;
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER;
pfd.iPixelType = PFD_TYPE_RGBA;
pfd.cColorBits = bits;
pfd.cRedBits = 0;
pfd.cRedShift = 0;
pfd.cGreenBits = 0;
pfd.cGreenShift = 0;
pfd.cBlueBits = 0;
pfd.cBlueShift = 0;
pfd.cAlphaBits = 0;
pfd.cAlphaShift = 0;
pfd.cAccumBits = 0;
pfd.cAccumRedBits = 0;
pfd.cAccumGreenBits = 0;
pfd.cAccumBlueBits = 0;
pfd.cAccumAlphaBits = 0;
pfd.cDepthBits = 16;
pfd.cStencilBits = 0;
pfd.cAuxBuffers = 0;
pfd.iLayerType = PFD_MAIN_PLANE;
pfd.bReserved = 0;
pfd.dwLayerMask = 0;
pfd.dwVisibleMask = 0;
pfd.dwDamageMask = 0;
PixelFormat=ChoosePixelFormat(hdc, &pfd);
SetPixelFormat(hdc, PixelFormat, &pfd);
hRC = wglCreateContext(hdc);
wglMakeCurrent(hdc, hRC);
William