GarageGames / Torque3D

MIT Licensed Open Source version of Torque 3D from GarageGames
http://torque3d.org
MIT License
3.35k stars 1.2k forks source link

Corrects a problem with the D3D11 texture lock/unlock mechanism #2247

Closed rextimmy closed 6 years ago

rextimmy commented 6 years ago

As per the title. If you need some quick code to test this with see here . This will produce a green texture 1024x1024 that will have a 512x512 blue box in the dead center of it.

OTHGMars commented 6 years ago

I've tested this PR with a wide variety of rectangle sizes and offsets and it has produced correct results in every test. It performs identically to the opengl version now.

Areloch commented 6 years ago

With that last fix, looks good now.