Fixing buffer_set_surface in GameMaker: Studio

If you are still using GameMaker: Studio instead of moving to a more current version (perhaps you should - it's been almost five years since GMS1 support has ended) and you are doing extension work or anything else that demands conversions between raw pixel data and surfaces on Windows, you might have noticed that buffer_set_surface doesn't work on some computers - no matter what you pass in, no pixels appear on the surface.

Though the better way to put it would be "buffer_set_surface doesn't work anymore".

This is a post about the matter.

Continue reading