• 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.

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:[code] memsetgraphics:[code]    memset (&pfd, 0, sizeof (PIXELFORMATDESCRIPTOR));

pfd.nSize    pfd.nSize = sizeof (PIXELFORMATDESCRIPTOR);
pfd.nVersion

pfd.nVersion
= 1;
pfd.dwFlags

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

pfd.iPixelType
= PFD_TYPE_RGBA;
pfd.cColorBits

pfd.cColorBits
= 32;
pfd.cDepthBits

pfd.cDepthBits
= 24;
pfd.cStencilBits

pfd.cStencilBits
= 8;
pfd.iLayerType

pfd.iLayerType
= PFD_MAIN_PLANE;[/code]

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 [url="http://www.gamedev.net/topic/136233-pixel-formats-ogl/"]this post[/url] 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
Warning: include_once(RContent/redis.php): failed to open stream: No such file or directory in /var/www/gamedev/admin/applications_addon/ips/ccs/sources/pages.php(458) : eval()'d code on line 4899 Warning: include_once(): Failed opening 'RContent/redis.php' for inclusion (include_path='/var/www/gamedev/ips_kernel/PEAR/') in /var/www/gamedev/admin/applications_addon/ips/ccs/sources/pages.php(458) : eval()'d code on line 4899