Hi to all,
I feel an unusual problem in the OpenGL display.I am using WGL functions with MFC class.In the OpenGL view class,
the PIXELFORMATDESCRIPTOR structure initialized is given:-
static PIXELFORMATDESCRIPTOR pfd =
{
sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd
1, // version number
PFD_DRAW_TO_WINDOW | // support window
PFD_SUPPORT_OPENGL | // support OpenGL
PFD_DOUBLEBUFFER | // double buffered
PFD_GENERIC_ACCELERATED,
PFD_TYPE_RGBA, // RGBA type
24, // 24-bit color depth
0, 0, 0, 0, 0, 0, // color bits ignored
0, // no alpha buffer
0, // shift bit ignored
0, // no accumulation buffer
0, 0, 0, 0, // accum bits ignored
24, // 24-bit z-buffer
8, // stencil buffer
0, // no auxiliary buffer
PFD_MAIN_PLANE, // main layer
0, // reserved
0, 0, 0 // layer masks ignored
};
After the OpenGL view is created, if we try to do any operation in another view (not using OpenGL instructions,using GDI calls)the system is restarted shows the message KMODE_EXCEPTION_NOT_HANDLED in nv4-disp.dll.
If i give the alpha buffer as 8 bit then no problem.But a black rectangle is shown in the right and bottom of the opengl window.
I am using NVIDIA RIVA TNT2 Model 64/Model 64 pro AGP card.
My doubt is Alpha buffer,Z-buffer and Stencil buffer are card dependent ??
How i can solve these problems ?? I am not expert in Driver side issues.
Thanks for any reply,
Jerry