Hi! I need to add detail to an existing 2D surface by blitting another surface on top of it. Up to this point, I haven't been using OpenGL and managed to get good results by calling the BltFast method from the destination surface.
I've now changed my code to make use of OpenGL (I'm working on Windows) but, unfortunately, the BltFast() method I use to compose the surface is returning E_LOCKFAILED and I don't know how to solve it.
I'm attaching a Visual Studio solution with a very simple example so that you can try it out and tell me what's missing. The call to BltFast that is failing is located in the line 194 of main.cpp
Many thanks!
--Nacho