2 Replies Latest reply on Mar 15, 2016 12:26 AM by Bryce@Intel

    We have a problem on Windows whereby when you enumerate the pixel formats, that the number of pixel formats returned depends upon the specifics of how the hDC was created.  For example,

    ERY

      We have a problem on Windows where when you enumerate pixel formats, that the number and type of pixel formats returned depends on how the hDC was created which was passed in.  For example, if I use this:

       

         

      hCDC = CreateDC( "DISPLAY", "", "", NULL );

       

      I will get 36 pixel formats in the enumeration.  But if I use this:

       

         

      hCDC = GetDC(NULL);

       

      I instead get 51 pixel formats returned.  If I create an hWnd and then pass that in to GetDC(), I also get 51 pixel formats.

       

      This problem seems to be specific to Intel HD Graphics.  My laptop has the 3000, and I updated to the latest drivers from Dell.

      If I enumerate pixel formats on machines with any other video card, I get the same number of pixel formats returned.  And if I switch the laptop over to use the nVidia graphics processor, I also get the same number of pixel formats.

       

      I am attaching a test program that I can run to demonstrate the issue.

       

      Can anyone explain why it is that there is this difference?