winex11: Bitmap rendering now checks pbuffer bit instead of pixmap bit
This is my first commit so I thought with something pretty unobjectionable. The merge request !8210 (merged) seems to have switched from pixmaps to pbuffers for bitmap rendering (although it might have been an earlier change). This flag was overlooked and is still checking for pixmap compatibility.
This caused problems with 16-bit bitmap rendering because, on my Nvidia driver, the pixmap bit is only ever set for onscreen (DRAW_TO_WINDOW
) pixel formats. None of the 16-bit pixel formats are DRAW_TO_WINDOW
, so that means it won't be able to find a good 16-bit pixel format. The pbuffer bit, on the other hand, is set for most offscreen formats and also more common for onscreen formats.
Notably this doesn't actually fix 16-bit bitmap rendering — it's pretty darn broken. Other changes need some more research & discussion though, I'll keep it for another day.