• Create Account

### #Actualmhagain

Posted 07 May 2012 - 12:38 PM

Most likely reason is that a hardware accelerated pixel format is not available for the options you've chosen. Here's my setup that gives me a 3.3 context on Windows 7 with switchable graphics:
memset (&pfd, 0, sizeof (PIXELFORMATDESCRIPTOR));

pfd.nSize = sizeof (PIXELFORMATDESCRIPTOR);
pfd.nVersion = 1;
pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER | PFD_SUPPORT_COMPOSITION;
pfd.iPixelType = PFD_TYPE_RGBA;
pfd.cColorBits = 32;
pfd.cDepthBits = 24;
pfd.cStencilBits = 8;
pfd.iLayerType = PFD_MAIN_PLANE;

You can call DescribePixelFormat in a loop, with format numbers starting at 1 and terminating the loop when you get a return of 0, to see what formats are available and which are hardware accelerated. This may be more helpful in determining exactly what formats the Intel does and doesn't support hardware accelerated OpenGL with. See this post for info on decoding the flags you get back.

### #1mhagain

Posted 07 May 2012 - 12:33 PM

Most likely reason is that a hardware accelerated pixel format is not available for the options you've chosen. Here's my setup that gives me a 3.3 context on Windows 7 with switchable graphics:
memset (&pfd, 0, sizeof (PIXELFORMATDESCRIPTOR));

pfd.nSize = sizeof (PIXELFORMATDESCRIPTOR);

pfd.nVersion = 1;

pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER | PFD_SUPPORT_COMPOSITION;

pfd.iPixelType = PFD_TYPE_RGBA;

pfd.cColorBits = 32;

pfd.cDepthBits = 24;

pfd.cStencilBits = 8;

pfd.iLayerType = PFD_MAIN_PLANE;

PARTNERS