D3DERR: Unable to lock render target surface

BlitzMax Forums/MaxGUI Module/D3DERR: Unable to lock render target surface

Rozek(Posted 2010) [#1]
Hello!

Does anybody know the error message

"D3DERR: Unable to lock render target surface"

under Windows (obviously)? I am trying to develop TProxyGadgets which draw lots of Pixmaps (because Image drawing did not handle transparency properly under Windows - while it did under MacOS X)

Thanks in advance for any help!


ima747(Posted 2010) [#2]
not really a solution but have you tried using the OpenGL driver instead of D3D on windows? though perhaps you're trying to work with the D3D driver specifically...

I had a number of problems with D3D on windows in 1.38, but since I'm developing for mac and PC at the same time I just set everything to use openGL and it comes out the same.


Rozek(Posted 2010) [#3]
Hmmm,

I think I'll give it a try (I might have to use OpenGL anyway sooner or later)

Thanks for your hint!


Chaduke(Posted 2011) [#4]
This error occurs when you try to draw a pixmap in a location that causes it to draw past the edge of the screen. It doesn't happen using the OpenGL driver.
I came across this post from a web search on the error message today.