1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| if(!arbMultisampleSupported)
{
PixelFormat = ChoosePixelFormat (gcf.hDC, &pfd); // Find A Compatible Pixel Format
if (PixelFormat == 0) // Did We Find A Compatible Format?
{
// Failed
gcf.log("Critical : No match for pixel format");
}
else{
sprintf_s(buf,255,"Pixel format selected : %d",PixelFormat);
gcf.log(buf);
}
}
else
{
PixelFormat = arbMultisampleFormat;
}
if (SetPixelFormat (gcf.hDC, PixelFormat, &pfd) == FALSE){ // Try To Set The Pixel Format
// Failed
gcf.log("Critical : can't set pixel format");
} |
Partager