On Wed Jun 19 07:18:23 2024 +0000, Rémi Bernon wrote:
if (!count) return TRUE; if (count == 1 && attributes[0] == WGL_NUMBER_PIXEL_FORMATS_ARB) { values[0] = num_formats; return TRUE; } if (index <= 0 || index > num_formats) { SetLastError( invalid_data_error ); return FALSE; }
Sorry, I used GL_ prefixed constants in my suggestion, but I think it's better to use the same constants everywhere in this function. As the return type is BOOL and not GLboolean, I'd suggest to use TRUE/FALSE instead.
Ack, updated in v3.