EDIT: dont need these to test...(dou you have the test.png and the CreateScreenTexture function?
I would like to run your code to see if i can help but those look integral to the problem.)
Initially, it looks like backbuffertotex is working on a single pixel (not the 256x256 area)
I would like to run your code to see if i can help but those look integral to the problem.)
Initially, it looks like backbuffertotex is working on a single pixel (not the 256x256 area)